Skip to content

Commit 603d292

Browse files
committed
Fix formatting
1 parent 897a607 commit 603d292

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/retry.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ const handler413: Handler = (_request, response) => {
2323
};
2424

2525
const createSocketTimeoutStream = (url: string): http.ClientRequest => {
26-
if (url.indexOf("https:") > -1) {
26+
if (url.includes('https:')) {
2727
return https.request(url, {
28-
timeout: 1
29-
});
28+
timeout: 1,
29+
});
3030
}
3131
return http.request(url, {
32-
timeout: socketTimeout
32+
timeout: socketTimeout,
3333
});
3434
};
3535

0 commit comments

Comments
 (0)