From: Jérôme Benoit Date: Fri, 7 Jun 2024 19:14:47 +0000 (+0200) Subject: fix: fix condition at ATG configuration handling X-Git-Tag: v1.3.5~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=274f9b3662d8cf5e5fb0a361a1ae9fac86309e40;p=e-mobility-charging-stations-simulator.git fix: fix condition at ATG configuration handling Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/AutomaticTransactionGenerator.ts b/src/charging-station/AutomaticTransactionGenerator.ts index 0e081f77..83cf259a 100644 --- a/src/charging-station/AutomaticTransactionGenerator.ts +++ b/src/charging-station/AutomaticTransactionGenerator.ts @@ -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