Skip to content

Commit d53342e

Browse files
anonrigaduh95
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 3d3a326 commit d53342e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_wrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ function normalizeConnectArgs(listArgs) {
16551655
// This means that options.host overrides a host arg.
16561656
if (listArgs[1] !== null && typeof listArgs[1] === 'object') {
16571657
ObjectAssign(options, listArgs[1]);
1658-
} else if (listArgs[2] !== null && typeof listArgs[2] === 'object') {
1658+
} else {
16591659
ObjectAssign(options, listArgs[2]);
16601660
}
16611661

0 commit comments

Comments
 (0)