refactor(simulator): remove unneeded type casting
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / 1.6 / OCPP16RequestService.ts
index 7686e734d801d3775c6c56e0c7a8c5d2a126171d..1d571b042dfdedecab3add913269c88171714926 100644 (file)
@@ -22,8 +22,7 @@ import {
   OCPPVersion,
   type RequestParams,
 } from '../../../types';
-import { Constants } from '../../../utils/Constants';
-import { Utils } from '../../../utils/Utils';
+import { Constants, Utils } from '../../../utils';
 import {
   OCPP16ServiceUtils,
   OCPPConstants,
@@ -139,7 +138,7 @@ export class OCPP16RequestService extends OCPPRequestService {
         this.buildRequestPayload<RequestType>(chargingStation, commandName, commandParams),
         commandName,
         params
-      )) as unknown as ResponseType;
+      )) as ResponseType;
     }
     // OCPPError usage here is debatable: it's an error in the OCPP stack but not targeted to sendError().
     throw new OCPPError(