From: Jérôme Benoit Date: Fri, 28 Apr 2023 13:54:40 +0000 (+0200) Subject: fix: fix phase rotation value helper return type X-Git-Tag: v1.2.12~50 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=be34dba565184fc320ac7621688ee5a35659e712;p=e-mobility-charging-stations-simulator.git fix: fix phase rotation value helper return type Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationUtils.ts b/src/charging-station/ChargingStationUtils.ts index b1eb2591..f967ddd4 100644 --- a/src/charging-station/ChargingStationUtils.ts +++ b/src/charging-station/ChargingStationUtils.ts @@ -97,7 +97,10 @@ export class ChargingStationUtils { return true; } - public static getPhaseRotationValue(connectorId: number, numberOfPhases: number): string { + public static getPhaseRotationValue( + connectorId: number, + numberOfPhases: number + ): string | undefined { // AC/DC if (connectorId === 0 && numberOfPhases === 0) { return `${connectorId}.${ConnectorPhaseRotation.RST}`;