From 2539b9b685c67f6731142b9a5d7e7d8902bad1f7 Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Wed, 21 Jun 2023 14:37:29 +0000 Subject: [PATCH] Fix linting --- packages/http-client/src/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client/src/proxy.ts b/packages/http-client/src/proxy.ts index 78b1dbfe..32afce6a 100644 --- a/packages/http-client/src/proxy.ts +++ b/packages/http-client/src/proxy.ts @@ -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