fix: fix code block in else at evses init
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 27 Apr 2023 18:33:24 +0000 (20:33 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 27 Apr 2023 18:33:24 +0000 (20:33 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 9d87153a3e0437cd5f767b96fcee39e4edb2333b..d830d74754a507f61336862cd4aaca887510f6bc 100644 (file)
@@ -1444,13 +1444,13 @@ export class ChargingStation {
             } with no evses configuration defined, cannot create evses`
           );
         }
-      } else {
-        logger.warn(
-          `${this.logPrefix()} Charging station information from template ${
-            this.templateFile
-          } with no evses configuration defined, using already defined evses`
-        );
       }
+    } else {
+      logger.warn(
+        `${this.logPrefix()} Charging station information from template ${
+          this.templateFile
+        } with no evses configuration defined, using already defined evses`
+      );
     }
   }