From 75eb458c5f558d9a91bfd2a9028dd5ab8cf2e5cc Mon Sep 17 00:00:00 2001 From: Coding for fun Date: Thu, 18 Jan 2024 06:29:14 +0100 Subject: [PATCH] Remove unused Get-Job | Remove-Job | Out-Null --- resources/download/common.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/download/common.ps1 b/resources/download/common.ps1 index 780db0b..15db0d5 100644 --- a/resources/download/common.ps1 +++ b/resources/download/common.ps1 @@ -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."