Rename a method to avoid confusion
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 7 May 2022 13:06:05 +0000 (15:06 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 7 May 2022 13:06:05 +0000 (15:06 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 19b8b8554bbe22e6b145f1beb19f8526ed5466fb..9393e164393aefc14a5ee4162975fa1bccbc3d29 100644 (file)
@@ -753,7 +753,7 @@ export default class ChargingStation {
       );
     }
     if (!Utils.isEmptyArray(chargingProfiles)) {
-      const result = this.getCurrentLimitFromChargingProfiles(chargingProfiles);
+      const result = this.getLimitFromChargingProfiles(chargingProfiles);
       if (!Utils.isNullOrUndefined(result)) {
         limit = result.limit;
         matchingChargingProfile = result.matchingChargingProfile;
@@ -2241,7 +2241,7 @@ export default class ChargingStation {
   /*
    * Charging profiles should already be sorted by connectorId and stack level (highest stack level has priority)
    */
-  private getCurrentLimitFromChargingProfiles(chargingProfiles: ChargingProfile[]): {
+  private getLimitFromChargingProfiles(chargingProfiles: ChargingProfile[]): {
     limit: number;
     matchingChargingProfile: ChargingProfile;
   } | null {