From: Jérôme Benoit Date: Fri, 28 Apr 2023 10:24:48 +0000 (+0200) Subject: refactor: remove unneeded premise in condition X-Git-Tag: v1.2.12~59 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8e2430ee33fef82e3cc9651899c540b568aa7c08;p=e-mobility-charging-stations-simulator.git refactor: remove unneeded premise in condition Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationUtils.ts b/src/charging-station/ChargingStationUtils.ts index 9f93e5ff..36847107 100644 --- a/src/charging-station/ChargingStationUtils.ts +++ b/src/charging-station/ChargingStationUtils.ts @@ -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 = [];