mirror of https://github.com/actions/toolkit
Fix linting
parent
60f4e9859c
commit
2539b9b685
|
@ -18,7 +18,7 @@ export function getProxyUrl(reqUrl: URL): URL | undefined {
|
||||||
return new URL(proxyVar)
|
return new URL(proxyVar)
|
||||||
} catch {
|
} catch {
|
||||||
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
||||||
return new URL('http://' + proxyVar)
|
return new URL(`http://${proxyVar}`)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return undefined
|
return undefined
|
||||||
|
|
Loading…
Reference in New Issue