From a65242f09a7a267c37f9bee0dd4fcd33eddbaf70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 7 May 2022 15:06:05 +0200 Subject: [PATCH] Rename a method to avoid confusion MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.34.1