repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef72d3f
)
CircularArray.ts: Consistent check
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sat, 15 May 2021 08:02:23 +0000
(10:02 +0200)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/CircularArray.ts
b/src/utils/CircularArray.ts
index 6eaa7026733a442a2f8e26ed020faa1018e9af96..cb7e3bf5f5d8f52a1d3aaab704d8ace1cf482098 100644
(file)
--- a/
src/utils/CircularArray.ts
+++ b/
src/utils/CircularArray.ts
@@
-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;