mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 12:49:06 +08:00
Formatting
This commit is contained in:
parent
17e0aec811
commit
60f4e9859c
@ -16,10 +16,9 @@ export function getProxyUrl(reqUrl: URL): URL | undefined {
|
|||||||
if (proxyVar) {
|
if (proxyVar) {
|
||||||
try {
|
try {
|
||||||
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…
x
Reference in New Issue
Block a user