mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 02:49:05 +08:00
Fix linting
This commit is contained in:
parent
60f4e9859c
commit
2539b9b685
@ -18,7 +18,7 @@ export function getProxyUrl(reqUrl: URL): URL | undefined {
|
||||
return new URL(proxyVar)
|
||||
} catch {
|
||||
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
||||
return new URL('http://' + proxyVar)
|
||||
return new URL(`http://${proxyVar}`)
|
||||
}
|
||||
} else {
|
||||
return undefined
|
||||
|
Loading…
x
Reference in New Issue
Block a user