From: Jérôme Benoit Date: Mon, 25 Apr 2022 13:00:08 +0000 (+0200) Subject: Refine comment at CS configuration file handling X-Git-Tag: v1.1.59~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=aca53a1a7866de74330802b2ea7506a874519725;p=e-mobility-charging-stations-simulator.git Refine comment at CS configuration file handling Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 0b61a107..757cea0f 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1002,7 +1002,7 @@ export default class ChargingStation { this.hashId + '.json' ); const stationInfoFromFile: ChargingStationInfo = this.getStationInfoFromFile(); - // Priority: charging stations info from template > charging station info from configuration file > charging station info attribute + // Priority: charging station info from template > charging station info from configuration file > charging station info attribute if (stationInfoFromFile?.templateHash === stationInfoFromTemplate.templateHash) { return stationInfoFromFile; } else if (stationInfoFromFile?.templateHash !== stationInfoFromTemplate.templateHash) {