From: Jérôme Benoit Date: Sat, 15 May 2021 08:02:23 +0000 (+0200) Subject: CircularArray.ts: Consistent check X-Git-Tag: v1.0.1-0~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9be37455e6a46ff9c2ab39211fb1c9fb4202d245;p=e-mobility-charging-stations-simulator.git CircularArray.ts: Consistent check Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/CircularArray.ts b/src/utils/CircularArray.ts index 6eaa7026..cb7e3bf5 100644 --- a/src/utils/CircularArray.ts +++ b/src/utils/CircularArray.ts @@ -36,7 +36,7 @@ export class CircularArray extends Array { if (concatenatedCircularArray.length > concatenatedCircularArray.size) { concatenatedCircularArray.splice( 0, - concatenatedCircularArray.length - this.size + concatenatedCircularArray.length - concatenatedCircularArray.size ); } return concatenatedCircularArray;