Skip to content

Commit 30d369c

Browse files
gurgundayaduh95
andauthored
minimize diff
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent c3c0d7d commit 30d369c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/priority_queue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = class PriorityQueue {
2828
const heap = this.#heap;
2929
const pos = ++this.#size;
3030

31-
if (pos === heap.length)
31+
if (heap.length === pos)
3232
heap.length *= 2;
3333

3434
heap[pos] = value;

0 commit comments

Comments
 (0)