X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPRequestService.ts;h=e78f71c56d1300137c12800c8f343e2a1ae9791c;hb=a4385edc2344433c20fcb92d01cbe5a330b850b4;hp=e98ebdfa6ab4384eb0b7ee2683cf7cdf3302919b;hpb=a807045be19c1ed4996a44d8c2c8774e926dc6dc;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index e98ebdfa..e78f71c5 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -27,7 +27,6 @@ import { cloneObject, formatDurationMilliSeconds, handleSendMessageError, - isNullOrUndefined, logger } from '../../utils/index.js' type Ajv = _Ajv.default @@ -436,7 +435,7 @@ export abstract class OCPPRequestService { chargingStation.wsConnection?.send(messageToSend, (error?: Error) => { PerformanceStatistics.endMeasure(commandName, beginId) clearTimeout(sendTimeout) - if (isNullOrUndefined(error)) { + if (error == null) { logger.debug( `${chargingStation.logPrefix()} >> Command '${commandName}' sent ${OCPPServiceUtils.getMessageTypeString( messageType