From: Jérôme Benoit Date: Wed, 12 Apr 2023 20:45:43 +0000 (+0200) Subject: docs: enhance code documentation X-Git-Tag: v1.2.8~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6b90dccaf87a8ed910e0435d1572580416e57e70;p=e-mobility-charging-stations-simulator.git docs: enhance code documentation Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 4f65a4e6..8bf8d6ae 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -962,7 +962,10 @@ export class ChargingStation { private getStationInfo(): ChargingStationInfo { const stationInfoFromTemplate: ChargingStationInfo = this.getStationInfoFromTemplate(); const stationInfoFromFile: ChargingStationInfo | undefined = this.getStationInfoFromFile(); - // Priority: charging station info from template > charging station info from configuration file > charging station info attribute + // Priority: + // 1. charging station info from template + // 2. charging station info from configuration file + // 3. charging station info attribute if (stationInfoFromFile?.templateHash === stationInfoFromTemplate.templateHash) { if (this.stationInfo?.infoHash === stationInfoFromFile?.infoHash) { return this.stationInfo;