Skip to content

Commit

Permalink
Removing ??
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 committed Nov 23, 2023
1 parent 442fd69 commit 3e3e190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export class Queue {
// rest of the tasks but ideally it should wait for flushing of all the tasks till the last dequeued task.
// if (!task?.stop && task?.pending != null) pending = positionOf(this.#pending, task);
// call the callback and return true when not queued or pending
let position = (queued ?? 0) + (pending ?? 0);
let position = (queued ?? 0) + pending;
callback?.(position);
return !position;
}, { idle: 10 });
Expand Down

0 comments on commit 3e3e190

Please sign in to comment.