Skip to content

Commit

Permalink
Misc code style changes to menu.js
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack committed Feb 8, 2018
1 parent 06ce8c4 commit 586b84f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 586b84f

Please sign in to comment.