From 02c769d09f7eeb7e154ea12a03556ac8d60dd8a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 26 May 2024 16:52:08 +0200 Subject: [PATCH] refactor: trivial code cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/fixed-priority-queue.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fixed-priority-queue.ts b/src/fixed-priority-queue.ts index 1204cf81..78ba2aff 100644 --- a/src/fixed-priority-queue.ts +++ b/src/fixed-priority-queue.ts @@ -54,7 +54,7 @@ export class FixedPriorityQueue { inserted = true break } - index++ + ++index if (index === nodeArrayLength) { index = 0 } @@ -111,8 +111,8 @@ export class FixedPriorityQueue { } } const value = this.nodeArray[index].data - index++ - i++ + ++index + ++i if (index === this.nodeArray.length) { index = 0 } -- 2.34.1