Browse Source

https: simpler argument check

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
v1.8.0-commit
Michaël Zasso 10 years ago
committed by Brendan Ashworth
parent
commit
c22e5ace84
  1. 4
      lib/https.js

4
lib/https.js

@ -45,9 +45,7 @@ function createConnection(port, host, options) {
options = port; options = port;
} else if (host !== null && typeof host === 'object') { } else if (host !== null && typeof host === 'object') {
options = host; options = host;
} else if (options !== null && typeof options === 'object') { } else if (options === null || typeof options !== 'object') {
options = options;
} else {
options = {}; options = {};
} }

Loading…
Cancel
Save