From dbc225ca7632397af0e9880d0e2d1c4a9b7da4b0 Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Thu, 28 Mar 2019 12:51:50 +1300 Subject: [PATCH] Simplify if statements (#268) --- main.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index b64ad2b..857a312 100644 --- a/main.js +++ b/main.js @@ -39,17 +39,13 @@ app.on('ready', createWindow) app.on('window-all-closed', function () { // On macOS it is common for applications and their menu bar // to stay active until the user quits explicitly with Cmd + Q - if (process.platform !== 'darwin') { - app.quit() - } + if (process.platform !== 'darwin') app.quit() }) app.on('activate', function () { // On macOS it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open. - if (mainWindow === null) { - createWindow() - } + if (mainWindow === null) createWindow() }) // In this file you can include the rest of your app's specific main process