docs: enhance code documentation
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 12 Apr 2023 20:45:43 +0000 (22:45 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 12 Apr 2023 20:45:43 +0000 (22:45 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 4f65a4e6a0c28122cf37e877daf7b4d953973670..8bf8d6ae3b153e3ee0aefa49c3c9c083fd037116 100644 (file)
@@ -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;