mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 01:14:23 +01:00
consistent formatting
This commit is contained in:
parent
593210456a
commit
b07bb67943
@ -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
|
||||
});
|
||||
|
@ -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
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user