From: Jérôme Benoit Date: Sat, 7 May 2022 13:06:05 +0000 (+0200) Subject: Rename a method to avoid confusion X-Git-Tag: v1.1.59~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a65242f09a7a267c37f9bee0dd4fcd33eddbaf70;p=e-mobility-charging-stations-simulator.git Rename a method to avoid confusion Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 19b8b855..9393e164 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -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 {