fix(Xo#removeSchedule): correctly test instance of SchedulerError

This commit is contained in:
Julien Fontanet 2016-09-18 05:12:36 +02:00
parent 89d13b2285
commit 55cb6b39db

View File

@ -182,7 +182,7 @@ export default class {
try { try {
this._disable(id) this._disable(id)
} catch (exc) { } catch (exc) {
if (!exc instanceof SchedulerError) { if (!(exc instanceof SchedulerError)) {
throw exc throw exc
} }
} finally { } finally {