refactor: cleanup eslint disablement rule
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 12 Jan 2024 21:52:10 +0000 (22:52 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 12 Jan 2024 21:52:10 +0000 (22:52 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts

index 6937f2bde3fe335b40f01b5b651a0a5149d9fac1..704be2adbc3f7977258c3d68aaf4bd9eb771ce66 100644 (file)
@@ -772,8 +772,7 @@ export class OCPP16IncomingRequestService extends OCPPIncomingRequestService {
     if (compositeSchedule != null) {
       return {
         status: GenericStatus.Accepted,
-        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
-        scheduleStart: compositeSchedule.startSchedule!,
+        scheduleStart: compositeSchedule.startSchedule,
         connectorId,
         chargingSchedule: compositeSchedule
       }