Skip to content

Commit ae803a9

Browse files
anonrigRafaelGSS
authored andcommitted
tls: remove unnecessary type check on normalize
PR-URL: #57336 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent b3382bd commit ae803a9

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)