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

index 6eaa7026733a442a2f8e26ed020faa1018e9af96..cb7e3bf5f5d8f52a1d3aaab704d8ace1cf482098 100644 (file)
@@ -36,7 +36,7 @@ export class CircularArray<T> extends Array<T> {
     if (concatenatedCircularArray.length > concatenatedCircularArray.size) {
       concatenatedCircularArray.splice(
         0,
-        concatenatedCircularArray.length - this.size
+        concatenatedCircularArray.length - concatenatedCircularArray.size
       );
     }
     return concatenatedCircularArray;