From 34053110c9a934d2a956164470336595a44ca85f Mon Sep 17 00:00:00 2001 From: Eva Date: Thu, 26 Oct 2023 14:55:12 +0300 Subject: [PATCH] refactor: removed unnecessary check --- lib/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pool.js b/lib/pool.js index 08509958069..e3cd3399e6b 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -57,7 +57,7 @@ class Pool extends PoolBase { maxCachedSessions, allowH2, socketPath, - timeout: connectTimeout == null ? 10e3 : connectTimeout, + timeout: connectTimeout, ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined), ...connect })