fix: fix phase rotation value helper return type
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 28 Apr 2023 13:54:40 +0000 (15:54 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 28 Apr 2023 13:54:40 +0000 (15:54 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStationUtils.ts

index b1eb259156bceaa3b655e3ecd5000d4202bc73b9..f967ddd40ebc3df51d4597b917d6b5ed9cb8a470 100644 (file)
@@ -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}`;