Skip to content

Commit

Permalink
(GH-57) Revert change to generic list
Browse files Browse the repository at this point in the history
This is causing build failures, and for now, simply revert back to
previous usage of ArrayList.
  • Loading branch information
gep13 committed Jun 1, 2020
1 parent aa2d82f commit ada1170
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tasks/chocolatey/chocolatey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ try {
$chocolateyVersion = & $chocoExe --version
Write-Output "Running Chocolatey Version: $chocolateyVersion"

#Array list is deprecated, switch to a Generic and avoid the costly New-Object call
$chocolateyArguments = [System.Collections.Generic.List]::New()
$chocolateyArguments = New-Object System.Collections.ArrayList

[bool]$debug = Get-VstsInput -Name 'debug' -AsBool -Default $false
[bool]$verbose = Get-VstsInput -Name 'verbose' -AsBool -Default $false
Expand Down

0 comments on commit ada1170

Please sign in to comment.