aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-01-17 17:33:44 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-01-17 17:34:41 -0800
commit81ab439b4884b93f862ebd17da1e65d8d8d9bd70 (patch)
tree53cbeff0c64788cb37bb25fb5a10d4c6944793c6 /scripts
parent3390007020921b41e3d4d42ad9b46c671250743a (diff)
downloadvcpkg-81ab439b4884b93f862ebd17da1e65d8d8d9bd70.tar.gz
vcpkg-81ab439b4884b93f862ebd17da1e65d8d8d9bd70.zip
[VcpkgPowershelUtils] Inline variable
Diffstat (limited to 'scripts')
-rw-r--r--scripts/VcpkgPowershellUtils.ps13
1 files changed, 1 insertions, 2 deletions
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
}