fix(simulator): fix empty array detection helper semantic
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPServiceUtils.ts
index 308f6b41239c10a5bde0eadd5bb4414595eba1ce..3fced606ba29e6b003aa1b16c0bafdcb4a3f533e 100644 (file)
@@ -218,7 +218,7 @@ export class OCPPServiceUtils {
       chargingStation.getConnectorStatus(connectorId)?.MeterValues;
     for (
       let index = 0;
-      Utils.isEmptyArray(sampledValueTemplates) === false && index < sampledValueTemplates.length;
+      Utils.isNotEmptyArray(sampledValueTemplates) === true && index < sampledValueTemplates.length;
       index++
     ) {
       if (
@@ -291,7 +291,7 @@ export class OCPPServiceUtils {
     methodName?: string
   ): string => {
     const logMsg =
-      !Utils.isEmptyString(moduleName) && !Utils.isEmptyString(methodName)
+      Utils.isNotEmptyString(moduleName) && Utils.isNotEmptyString(methodName)
         ? ` OCPP ${ocppVersion} | ${moduleName}.${methodName}:`
         : ` OCPP ${ocppVersion} |`;
     return Utils.logPrefix(logMsg);