From 55cb6b39db063d0e9073482b735a7041cdaccaee Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Sun, 18 Sep 2016 05:12:36 +0200 Subject: [PATCH] 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 {