diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-04-03 15:33:22 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-04-03 15:33:22 +0900 |
| commit | 41c2aed7dc760d8a89cd09c32cfbee620596fb61 (patch) | |
| tree | 9307e469f13ba267e359369ae83ddb40d3b46064 /packages/backend/src/misc/fetch.ts | |
| parent | chore: fix paths (diff) | |
| download | sharkey-41c2aed7dc760d8a89cd09c32cfbee620596fb61.tar.gz sharkey-41c2aed7dc760d8a89cd09c32cfbee620596fb61.tar.bz2 sharkey-41c2aed7dc760d8a89cd09c32cfbee620596fb61.zip | |
chore: fix lint
Diffstat (limited to 'packages/backend/src/misc/fetch.ts')
| -rw-r--r-- | packages/backend/src/misc/fetch.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/misc/fetch.ts b/packages/backend/src/misc/fetch.ts index 47a5cd471a..4b1013c9f5 100644 --- a/packages/backend/src/misc/fetch.ts +++ b/packages/backend/src/misc/fetch.ts @@ -120,9 +120,9 @@ export const httpsAgent = config.proxy */ export function getAgentByUrl(url: URL, bypassProxy = false) { if (bypassProxy || (config.proxyBypassHosts || []).includes(url.hostname)) { - return url.protocol == 'http:' ? _http : _https; + return url.protocol === 'http:' ? _http : _https; } else { - return url.protocol == 'http:' ? httpAgent : httpsAgent; + return url.protocol === 'http:' ? httpAgent : httpsAgent; } } |