diff --git a/dist/index.js b/dist/index.js index 08ea1332..8d908ba9 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) {