diff --git a/package.json b/package.json index 0343d8584..41fe2bc5d 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,7 @@ "nyc": "^8.1.0", "rimraf": "^2.5.2", "sinon": "^1.14.1", - "standard": "^7.0.0" + "standard": "^8.1.0" }, "scripts": { "build": "npm run build-indexes && gulp build --production", diff --git a/src/xo-mixins/scheduling.js b/src/xo-mixins/scheduling.js index 3891604ad..62094daaf 100644 --- a/src/xo-mixins/scheduling.js +++ b/src/xo-mixins/scheduling.js @@ -182,7 +182,7 @@ export default class { try { this._disable(id) } catch (exc) { - if (!exc instanceof SchedulerError) { + if (!(exc instanceof SchedulerError)) { throw exc } } finally {