From 89d13b228525ffb26f010aaddf12a90616561846 Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Sat, 17 Sep 2016 20:51:59 +0200 Subject: [PATCH 1/2] chore(package): update standard to version 8.1.0 https://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 55cb6b39db063d0e9073482b735a7041cdaccaee Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Sun, 18 Sep 2016 05:12:36 +0200 Subject: [PATCH 2/2] fix(Xo#removeSchedule): correctly test instance of SchedulerError --- src/xo-mixins/scheduling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {