From 6152133bc40c9a7a324417540fcb0605352d96da Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Fri, 22 Dec 2023 06:01:39 +0000 Subject: [PATCH] [CodeFactor] Apply fixes --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 08ea133..8d908ba 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3559,12 +3559,12 @@ class HttpClient { agent = this._agent; } // if agent is already assigned use that agent. - if (!!agent) { + if (agent) { return agent; } const usingSsl = parsedUrl.protocol === 'https:'; let maxSockets = 100; - if (!!this.requestOptions) { + if (this.requestOptions) { maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; } if (useProxy) {