From ae36bdfe7bd9e685b7112e8cb6bfe59fbc18bf5b Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Wed, 18 Oct 2023 11:09:25 +0530 Subject: [PATCH] chore: removed redundant code --- packages/bruno-electron/src/ipc/network/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/ipc/network/index.js b/packages/bruno-electron/src/ipc/network/index.js index 6e726f051..a62900f44 100644 --- a/packages/bruno-electron/src/ipc/network/index.js +++ b/packages/bruno-electron/src/ipc/network/index.js @@ -127,7 +127,7 @@ const configureRequest = async (collectionUid, request, envVars, collectionVaria proxyEnabled = get(proxyConfig, 'enabled', false); } const shouldProxy = shouldUseProxy(request.url, get(proxyConfig, 'bypassProxy', '')); - if ((proxyEnabled === true || proxyEnabled === 'enabled') && shouldProxy) { + if (proxyEnabled === true && shouldProxy) { const proxyProtocol = interpolateString(get(proxyConfig, 'protocol'), interpolationOptions); const proxyHostname = interpolateString(get(proxyConfig, 'hostname'), interpolationOptions); const proxyPort = interpolateString(get(proxyConfig, 'port'), interpolationOptions);