fix: fix condition at ATG configuration handling
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 7 Jun 2024 19:14:47 +0000 (21:14 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 7 Jun 2024 19:14:47 +0000 (21:14 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/AutomaticTransactionGenerator.ts

index 0e081f7750011a095c5fe8a8917fa1aa8e099c90..83cf259a81f88e55dbc9b3e2f080497e358bd758 100644 (file)
@@ -414,7 +414,7 @@ export class AutomaticTransactionGenerator {
         // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
         this.chargingStation.getAutomaticTransactionGeneratorStatuses()![statusIndex]
       )
-    } else if (this.chargingStation.getAutomaticTransactionGeneratorStatuses() != null) {
+    } else {
       logger.warn(
         `${this.logPrefix(
           connectorId