CircularArray.ts: Fix unshift return
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 May 2021 08:29:37 +0000 (10:29 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 15 May 2021 08:29:37 +0000 (10:29 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/CircularArray.ts

index cb7e3bf5f5d8f52a1d3aaab704d8ace1cf482098..227165fb5ac50d775a72944ca6528973120a48ab 100644 (file)
@@ -25,7 +25,7 @@ export class CircularArray<T> extends Array<T> {
     if (length > this.size) {
       super.splice(this.size, items.length);
     }
-    return length;
+    return this.length;
   }
 
   public concat(...items: (T | ConcatArray<T>)[]): CircularArray<T> {