https: simpler argument check

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
This commit is contained in:
Michaël Zasso 2015-02-07 12:40:05 +01:00 committed by Brendan Ashworth
parent b9d3928f80
commit c22e5ace84

View File

@ -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 = {};
}