🔧 Make this easier to read

This commit is contained in:
Felix Rieseberg 2017-11-07 18:26:10 -08:00 committed by GitHub
parent 07dea13c77
commit 3dcde82485
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ Menu.sendActionToFirstResponder = bindings.sendActionToFirstResponder
// set application menu with a preexisting menu
Menu.setApplicationMenu = function (menu) {
if (!(!menu || menu.constructor === Menu)) {
if (menu && menu.constructor !== Menu)) {
throw new TypeError('Invalid menu')
}