Skip to content

Commit

Permalink
Fix issue with double inserts into SleepList
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Aug 4, 2024
1 parent 1ccea49 commit 951d087
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/utils/containers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ export class SleepList<T, ID> {
}

insert(item: [number, T]) {
this.list.push(item);
let i = 0;
// TODO: Binary search
for (; i < this.list.length; i++) {
Expand Down

0 comments on commit 951d087

Please sign in to comment.