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:
c3d8778
)
perf(simulator): remove unneeded nullish check at startup
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 2 Feb 2023 22:07:47 +0000
(23:07 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 2 Feb 2023 22:07:47 +0000
(23:07 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/charging-station/Bootstrap.ts
b/src/charging-station/Bootstrap.ts
index 80e0f49af4d35c9f5283918da3672dbf5f49c969..bf89016df38f75fbacf7c891e13d030f6482eca7 100644
(file)
--- a/
src/charging-station/Bootstrap.ts
+++ b/
src/charging-station/Bootstrap.ts
@@
-247,7
+247,7
@@
export class Bootstrap {
this.numberOfChargingStations = 0;
const stationTemplateUrls = Configuration.getStationTemplateUrls();
if (!Utils.isEmptyArray(stationTemplateUrls)) {
- this.numberOfChargingStationTemplates = stationTemplateUrls
?
.length;
+ this.numberOfChargingStationTemplates = stationTemplateUrls.length;
stationTemplateUrls.forEach((stationTemplateUrl) => {
this.numberOfChargingStations += stationTemplateUrl.numberOfStations ?? 0;
});