From: Jérôme Benoit Date: Thu, 2 Feb 2023 22:07:47 +0000 (+0100) Subject: perf(simulator): remove unneeded nullish check at startup X-Git-Tag: v1.1.93~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=41bda658ed7c2caf82b4d6a8f7af06b65729e1fb;p=e-mobility-charging-stations-simulator.git perf(simulator): remove unneeded nullish check at startup Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 80e0f49a..bf89016d 100644 --- 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; });