From 8e2430ee33fef82e3cc9651899c540b568aa7c08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 28 Apr 2023 12:24:48 +0200 Subject: [PATCH] refactor: remove unneeded premise in condition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStationUtils.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 = []; -- 2.34.1