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:
9be3745
)
CircularArray.ts: Fix unshift return
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sat, 15 May 2021 08:29:37 +0000
(10:29 +0200)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/CircularArray.ts
b/src/utils/CircularArray.ts
index cb7e3bf5f5d8f52a1d3aaab704d8ace1cf482098..227165fb5ac50d775a72944ca6528973120a48ab 100644
(file)
--- a/
src/utils/CircularArray.ts
+++ b/
src/utils/CircularArray.ts
@@
-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> {