Skip to content

Commit

Permalink
[CodeFactor] Apply fixes to commit dc7af93
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Dec 28, 2023
1 parent dc7af93 commit 488241b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
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 488241b

Please sign in to comment.