diff --git a/spec/api-app-spec.js b/spec/api-app-spec.js index d49ef18989c5..be398c3014ca 100644 --- a/spec/api-app-spec.js +++ b/spec/api-app-spec.js @@ -81,7 +81,7 @@ describe('app module', function () { var appProcess = null afterEach(function () { - appProcess != null ? appProcess.kill() : void 0 + if (appProcess != null) appProcess.kill() }) it('emits a process exit event with the code', function (done) {