From 60f4e9859c8465aa983842aac3af2f931b97c86e Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Tue, 20 Jun 2023 13:55:00 +0000 Subject: [PATCH] Formatting --- packages/http-client/src/proxy.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/http-client/src/proxy.ts b/packages/http-client/src/proxy.ts index 8a11ce99..78b1dbfe 100644 --- a/packages/http-client/src/proxy.ts +++ b/packages/http-client/src/proxy.ts @@ -16,10 +16,9 @@ export function getProxyUrl(reqUrl: URL): URL | undefined { if (proxyVar) { try { return new URL(proxyVar) - } - catch { + } catch { if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) - return new URL('http://' + proxyVar) + return new URL('http://' + proxyVar) } } else { return undefined