refactor: remove unneeded premise in condition
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 28 Apr 2023 10:24:48 +0000 (12:24 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 28 Apr 2023 10:24:48 +0000 (12:24 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStationUtils.ts

index 9f93e5ffe0c8be18c33d26604f3d96af65be7682..368471074b2f5d46642072e0eb2629d198dac00a 100644 (file)
@@ -215,10 +215,7 @@ export class ChargingStationUtils {
           }`
         );
       }
-      if (
-        connectorId === 0 &&
-        Utils.isNullOrUndefined(connectors.get(connectorId)?.transactionStarted)
-      ) {
+      if (connectorId === 0) {
         connectors.get(connectorId).availability = AvailabilityType.Operative;
         if (Utils.isUndefined(connectors.get(connectorId)?.chargingProfiles)) {
           connectors.get(connectorId).chargingProfiles = [];