From: Jérôme Benoit Date: Sat, 15 May 2021 08:29:37 +0000 (+0200) Subject: CircularArray.ts: Fix unshift return X-Git-Tag: v1.0.1-0~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=35e159338bbcee30067b8f3561a2c81011a0d390;p=e-mobility-charging-stations-simulator.git CircularArray.ts: Fix unshift return Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/CircularArray.ts b/src/utils/CircularArray.ts index cb7e3bf5..227165fb 100644 --- a/src/utils/CircularArray.ts +++ b/src/utils/CircularArray.ts @@ -25,7 +25,7 @@ export class CircularArray extends Array { if (length > this.size) { super.splice(this.size, items.length); } - return length; + return this.length; } public concat(...items: (T | ConcatArray)[]): CircularArray {