Skip to content

Commit c4fdb27

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 3687390 commit c4fdb27

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
@@ -1655,7 +1655,7 @@ function normalizeConnectArgs(listArgs){
16551655
// This means that options.host overrides a host arg.
16561656
if(listArgs[1]!==null&&typeoflistArgs[1]==='object'){
16571657
ObjectAssign(options,listArgs[1]);
1658-
}elseif(listArgs[2]!==null&&typeoflistArgs[2]==='object'){
1658+
}else{
16591659
ObjectAssign(options,listArgs[2]);
16601660
}
16611661

0 commit comments

Comments
(0)