Skip to content

Commit

Permalink
Remove unused Get-Job | Remove-Job | Out-Null
Browse files Browse the repository at this point in the history
  • Loading branch information
reuteras committed Jan 18, 2024
1 parent 6bda193 commit 75eb458
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion resources/download/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ function Get-FileFromUri {
$FLAGS = @()
(Write-Output "$ETAG_FLAG $Z_FLAG $GH_FLAG $UA_FLAG --silent -L --output $TmpFilePath $Uri").split(" ") | ForEach-Object {if ("" -ne $_ ) {$FLAGS += $_}}
& $CMD $FLAGS
Get-Job | Remove-Job | Out-Null
}
if (Test-Path $TmpFilePath) {
Write-SynchronizedLog "Downloaded $Uri to $FilePath."
Expand Down

0 comments on commit 75eb458

Please sign in to comment.