Fix linting

This commit is contained in:
Ferenc Hammerl
2023-03-01 16:29:38 +00:00
parent b708d5ba60
commit e4ae385d1a
2 changed files with 36 additions and 33 deletions
+5 -1
View File
@@ -74,5 +74,9 @@ export function checkBypass(reqUrl: URL): boolean {
function isLoopbackAddress(host: string): boolean {
const hostUpper = host.toUpperCase()
return hostUpper === 'LOCALHOST' || hostUpper.startsWith('127.') || hostUpper.startsWith('::1')
return (
hostUpper === 'LOCALHOST' ||
hostUpper.startsWith('127.') ||
hostUpper.startsWith('::1')
)
}