From 3ba9c705e0d29c01fd6c319ee79a3d77d01a0d73 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Wed, 5 Mar 2025 16:08:48 -0500 Subject: [PATCH] tls: remove unnecessary type check on normalize --- lib/_tls_wrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }