From 188190888b11fb06abbdd0874ae348e48bc4331e Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Thu, 28 May 2020 15:36:06 -0400 Subject: [PATCH] more lint --- src/electron-main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/electron-main.js b/src/electron-main.js index 5144682..e7f261b 100644 --- a/src/electron-main.js +++ b/src/electron-main.js @@ -392,10 +392,11 @@ ipcMain.on('ipcCall', async function(ev, payload) { try { const randomArray = await new Promise((resolve, reject) => { crypto.randomBytes(32, (err, buf) => { - if (err) + if (err) { reject(err); - else + } else { resolve(buf); + } }); }); const pickleKey = randomArray.toString("base64").replace(/=+$/g, '');