Skip to content

Commit

Permalink
refactor: drop useless array creation from SchedulerOrchestrator
Browse files Browse the repository at this point in the history
  • Loading branch information
micalevisk committed Apr 15, 2022
1 parent 000c8f4 commit 9d813c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/scheduler.orchestrator.ts
Expand Up @@ -86,13 +86,13 @@ export class SchedulerOrchestrator
}

clearTimeouts() {
Array.from(this.schedulerRegistry.getTimeouts()).forEach((key) =>
this.schedulerRegistry.getTimeouts().forEach((key) =>
this.schedulerRegistry.deleteTimeout(key),
);
}

clearIntervals() {
Array.from(this.schedulerRegistry.getIntervals()).forEach((key) =>
this.schedulerRegistry.getIntervals().forEach((key) =>
this.schedulerRegistry.deleteInterval(key),
);
}
Expand Down

0 comments on commit 9d813c5

Please sign in to comment.