fix(Xo#removeSchedule): correctly test instance of SchedulerError
This commit is contained in:
parent
89d13b2285
commit
55cb6b39db
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user