Skip to content

Commit

Permalink
[CodeFactor] Apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Dec 22, 2023
1 parent ca71718 commit 6152133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 6152133

Please sign in to comment.