diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-17 17:33:44 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-17 17:34:41 -0800 |
| commit | 81ab439b4884b93f862ebd17da1e65d8d8d9bd70 (patch) | |
| tree | 53cbeff0c64788cb37bb25fb5a10d4c6944793c6 | |
| parent | 3390007020921b41e3d4d42ad9b46c671250743a (diff) | |
| download | vcpkg-81ab439b4884b93f862ebd17da1e65d8d8d9bd70.tar.gz vcpkg-81ab439b4884b93f862ebd17da1e65d8d8d9bd70.zip | |
[VcpkgPowershelUtils] Inline variable
| -rw-r--r-- | scripts/VcpkgPowershellUtils.ps1 | 3 |
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 } |
