From b07bb67943b85f7cb4afbfae14c8a9976e0e32c1 Mon Sep 17 00:00:00 2001 From: Brent Shikoski Date: Fri, 8 Sep 2023 21:33:09 -0500 Subject: [PATCH] consistent formatting --- packages/bruno-cli/src/runner/run-single-request.js | 4 ++-- packages/bruno-electron/src/ipc/network/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/bruno-cli/src/runner/run-single-request.js b/packages/bruno-cli/src/runner/run-single-request.js index bb461edb..a831bc65 100644 --- a/packages/bruno-cli/src/runner/run-single-request.js +++ b/packages/bruno-cli/src/runner/run-single-request.js @@ -54,7 +54,7 @@ const runSingleRequest = async function (filename, bruJson, collectionPath, coll else { const cacertArray = [options['cacert'], process.env.SSL_CERT_FILE, process.env.NODE_EXTRA_CA_CERTS]; const cacert = cacertArray.find(el => el); - if (cacert && cacert.length > 1) { + if(cacert && cacert.length > 1) { try { caCrt = fs.readFileSync(cacert); httpsAgentRequestFields['ca'] = caCrt; @@ -64,7 +64,7 @@ const runSingleRequest = async function (filename, bruJson, collectionPath, coll } } - if (Object.keys(httpsAgentRequestFields).length > 0) { + if(Object.keys(httpsAgentRequestFields).length > 0) { request.httpsAgent = new https.Agent({ ...httpsAgentRequestFields }); diff --git a/packages/bruno-electron/src/ipc/network/index.js b/packages/bruno-electron/src/ipc/network/index.js index a8cba740..3052cbdc 100644 --- a/packages/bruno-electron/src/ipc/network/index.js +++ b/packages/bruno-electron/src/ipc/network/index.js @@ -155,7 +155,7 @@ const registerNetworkIpc = (mainWindow, watcher, lastOpenedCollections) => { else { const cacertArray = [preferences['cacert'], process.env.SSL_CERT_FILE, process.env.NODE_EXTRA_CA_CERTS]; cacertFile = cacertArray.find(el => el); - if (cacertFile && cacertFile.length > 1) { + if(cacertFile && cacertFile.length > 1) { try { const fs = require('fs'); caCrt = fs.readFileSync(cacertFile); @@ -166,7 +166,7 @@ const registerNetworkIpc = (mainWindow, watcher, lastOpenedCollections) => { } } - if (Object.keys(httpsAgentRequestFields).length > 0) { + if(Object.keys(httpsAgentRequestFields).length > 0) { request.httpsAgent = new https.Agent({ ...httpsAgentRequestFields });