refactor: cleanup performance statistics namespace
[e-mobility-charging-stations-simulator.git] / src / utils / ErrorUtils.ts
index b4f52ba894a9e57891a04954bbe066b6b1d40ad8..0e3dbc50058c669c1c5a30a17c8ecbe14e9138c9 100644 (file)
@@ -1,7 +1,7 @@
 import chalk from 'chalk';
 
 import { logger } from './Logger';
-import { Utils } from './Utils';
+import { isNotEmptyString } from './Utils';
 import type { ChargingStation } from '../charging-station';
 import type {
   EmptyObject,
@@ -37,7 +37,7 @@ export const handleFileException = (
   params: HandleErrorParams<EmptyObject> = defaultErrorParams
 ): void => {
   setDefaultErrorParams(params);
-  const prefix = Utils.isNotEmptyString(logPrefix) ? `${logPrefix} ` : '';
+  const prefix = isNotEmptyString(logPrefix) ? `${logPrefix} ` : '';
   let logMsg: string;
   switch (error.code) {
     case 'ENOENT':