Skip to content

Commit c22e5ac

Browse files
targosbrendanashworth
authored andcommitted
https: simpler argument check
Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brendan Ashworth <[email protected]>
1 parent b9d3928 commit c22e5ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/https.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ function createConnection(port, host, options) {
4545
options = port;
4646
} else if (host !== null && typeof host === 'object') {
4747
options = host;
48-
} else if (options !== null && typeof options === 'object') {
49-
options = options;
50-
} else {
48+
} else if (options === null || typeof options !== 'object') {
5149
options = {};
5250
}
5351

0 commit comments

Comments
 (0)