Skip to content

Commit 43fb78e

Browse files
anonrigRafaelGSS
authored andcommitted
tls: remove unnecessary type check on normalize
PR-URL: #57336 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent c3927aa commit 43fb78e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_wrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ function normalizeConnectArgs(listArgs) {
16071607
// This means that options.host overrides a host arg.
16081608
if (listArgs[1] !== null && typeof listArgs[1] === 'object') {
16091609
ObjectAssign(options, listArgs[1]);
1610-
} else if (listArgs[2] !== null && typeof listArgs[2] === 'object') {
1610+
} else {
16111611
ObjectAssign(options, listArgs[2]);
16121612
}
16131613

0 commit comments

Comments
 (0)