diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index c44097a31a0a01..e2e81c66cd4d18 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -1655,7 +1655,7 @@ function normalizeConnectArgs(listArgs) { // This means that options.host overrides a host arg. if (listArgs[1] !== null && typeof listArgs[1] === 'object') { ObjectAssign(options, listArgs[1]); - } else if (listArgs[2] !== null && typeof listArgs[2] === 'object') { + } else { ObjectAssign(options, listArgs[2]); }