From: Jérôme Benoit Date: Thu, 27 Jul 2023 12:09:25 +0000 (+0200) Subject: refactor: remove uneeded unknown intermediate type cast X-Git-Tag: v1.2.20~114 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=66b537dc52309a7025813c238dcc29d44bcf4e0d;p=e-mobility-charging-stations-simulator.git refactor: remove uneeded unknown intermediate type cast Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationUtils.ts b/src/charging-station/ChargingStationUtils.ts index 39bcbcc9..6c273246 100644 --- a/src/charging-station/ChargingStationUtils.ts +++ b/src/charging-station/ChargingStationUtils.ts @@ -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 = (