refactor: queue code cleanups
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 16 Jun 2023 09:07:26 +0000 (11:07 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 16 Jun 2023 09:07:26 +0000 (11:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/queue.ts

index 8b761c8ff82d5ca7c0c0a67b361188d1fda19dc5..7aad6d065ce6338129c70032b266ce5c6bcba600 100644 (file)
@@ -13,9 +13,9 @@ export class Queue<T> {
 
   public constructor () {
     this.items = []
+    this.offset = 0
     /** The size of the queue. */
     this.size = 0
-    this.offset = 0
     /** The maximum size of the queue. */
     this.maxSize = 0
   }