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;
} else if (host !== null && typeof host === 'object') {
options = host;
} else if (options !== null && typeof options === 'object') {
options = options;
} else {
} else if (options === null || typeof options !== 'object') {
options = {};
}

Loading…
Cancel
Save