Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Oct 28, 2024
1 parent 58165d5 commit 9bcb77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BusyStatusTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ export class BusyStatusTracker<T = any> {
if (isFinalized === false) {
isFinalized = true;

this.emit('active-runs-change', { activeRuns: [...this.activeRuns] });

let idx = this.activeRuns.indexOf(runInfo);
if (idx > -1) {
this.activeRuns.splice(idx, 1);
this.emit('active-runs-change', { activeRuns: [...this.activeRuns] });
}
if (this.activeRuns.length <= 0) {
this.emit('change', BusyStatus.idle);
Expand Down

0 comments on commit 9bcb77a

Please sign in to comment.