ATG: remove useless nullify in CS class
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 12 Sep 2022 20:22:02 +0000 (22:22 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 12 Sep 2022 20:22:02 +0000 (22:22 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 7ce6c1f891b4c9d4ff4ff5ddf4307c189efa85e1..32d48c24c1213c8030ce13eb42b0f3718f2b3c53 100644 (file)
@@ -738,11 +738,9 @@ export default class ChargingStation {
     if (!Utils.isEmptyArray(connectorIds)) {
       for (const connectorId of connectorIds) {
         this.automaticTransactionGenerator?.stopConnector(connectorId);
-        // FIXME: check if the number of connectors match the CS number of connectors
       }
     } else {
       this.automaticTransactionGenerator?.stop();
-      this.automaticTransactionGenerator = null;
     }
     parentPort.postMessage(MessageChannelUtils.buildUpdatedMessage(this));
   }