From 586b84f0ed5d1ded13ab296ba1219d26c70bb9dc Mon Sep 17 00:00:00 2001 From: Amila Welihinda Date: Sat, 3 Feb 2018 16:05:27 -0800 Subject: [PATCH] Misc code style changes to menu.js --- app/menu.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/menu.js b/app/menu.js index 827b388..6541352 100644 --- a/app/menu.js +++ b/app/menu.js @@ -13,13 +13,9 @@ export default class MenuBuilder { this.setupDevelopmentEnvironment(); } - let template; - - if (process.platform === 'darwin') { - template = this.buildDarwinTemplate(); - } else { - template = this.buildDefaultTemplate(); - } + const template = process.platform === 'darwin' + ? this.buildDarwinTemplate() + : this.buildDefaultTemplate(); const menu = Menu.buildFromTemplate(template); Menu.setApplicationMenu(menu);