refactor: remove uneeded unknown intermediate type cast
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 27 Jul 2023 12:09:25 +0000 (14:09 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 27 Jul 2023 12:09:25 +0000 (14:09 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStationUtils.ts

index 39bcbcc987991d7e082e2b5fc9934591222522f1..6c2732460c8cbd84c388ce58958f2d8f7f231657 100644 (file)
@@ -400,7 +400,7 @@ export const stationTemplateToStationInfo = (
   delete stationTemplate.chargeBoxSerialNumberPrefix;
   delete stationTemplate.chargePointSerialNumberPrefix;
   delete stationTemplate.meterSerialNumberPrefix;
-  return stationTemplate as unknown as ChargingStationInfo;
+  return stationTemplate as ChargingStationInfo;
 };
 
 export const createSerialNumber = (