Skip to content

Commit 738bee1

Browse files
author
Winston Liu
authored
Quick change before upcoming squash
1 parent 34635ea commit 738bee1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/install.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,10 @@ function download (gyp, env, uri) {
433433
var proxyUrl = gyp.opts.proxy;
434434

435435
// prefer HTTPS proxy if contacting an HTTPS uri
436-
if (url.parse(uri).protocol === 'https:') {
437-
if (!proxyUrl) {
438-
proxyUrl = env.https_proxy
439-
|| env.HTTPS_PROXY
440-
|| env.npm_config_https_proxy
441-
}
436+
if (!proxyUrl && url.parse(uri).protocol === 'https:') {
437+
proxyUrl = env.https_proxy
438+
|| env.HTTPS_PROXY
439+
|| env.npm_config_https_proxy
442440
}
443441

444442
// but fallback to an HTTP proxy as needed

0 commit comments

Comments
 (0)