Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrutter committed Feb 7, 2025
1 parent 897a607 commit 603d292
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ const handler413: Handler = (_request, response) => {
};

const createSocketTimeoutStream = (url: string): http.ClientRequest => {
if (url.indexOf("https:") > -1) {
if (url.includes('https:')) {
return https.request(url, {
timeout: 1
});
timeout: 1,
});
}
return http.request(url, {
timeout: socketTimeout
timeout: socketTimeout,
});
};

Expand Down

0 comments on commit 603d292

Please sign in to comment.