From 81ab439b4884b93f862ebd17da1e65d8d8d9bd70 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 17 Jan 2018 17:33:44 -0800 Subject: [VcpkgPowershelUtils] Inline variable --- scripts/VcpkgPowershellUtils.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/VcpkgPowershellUtils.ps1 b/scripts/VcpkgPowershellUtils.ps1 index 997f603e3..5381523f0 100644 --- a/scripts/VcpkgPowershellUtils.ps1 +++ b/scripts/VcpkgPowershellUtils.ps1 @@ -108,8 +108,7 @@ function vcpkgDownloadFile( [Parameter(Mandatory=$true)][string]$url, vcpkgRemoveItem $downloadPartPath $wc = New-Object System.Net.WebClient - $proxyAuth = !$wc.Proxy.IsBypassed($url) - if ($proxyAuth) + if (!$wc.Proxy.IsBypassed($url)) { $wc.Proxy.Credentials = vcpkgGetCredentials } -- cgit v1.2.3