mirror of
https://github.com/actions/toolkit.git
synced 2026-08-12 00:00:17 +02:00
Fix linting
This commit is contained in:
@@ -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')
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user