https: simpler argument check
Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
This commit is contained in:
parent
b9d3928f80
commit
c22e5ace84
@ -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…
x
Reference in New Issue
Block a user