From 41bda658ed7c2caf82b4d6a8f7af06b65729e1fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 2 Feb 2023 23:07:47 +0100 Subject: [PATCH] perf(simulator): remove unneeded nullish check at startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/Bootstrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }); -- 2.34.1