refactor(simulator): remove unneeded condition check in log message
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStationUtils.ts
index 92ed040696f2e60f0d3e7e13a4ee624ee3bf4047..efa8921c645707a293ecbd7a2b60dcb3de1d84c4 100644 (file)
@@ -4,7 +4,7 @@ import { fileURLToPath } from 'node:url';
 
 import moment from 'moment';
 
-import type { ChargingStation } from './ChargingStation';
+import type { ChargingStation } from './internal';
 import { BaseError } from '../exception';
 import {
   AmpereUnits,
@@ -23,11 +23,14 @@ import {
   RecurrencyKindType,
   Voltage,
 } from '../types';
-import { Configuration } from '../utils/Configuration';
-import { Constants } from '../utils/Constants';
-import { ACElectricUtils, DCElectricUtils } from '../utils/ElectricUtils';
-import { logger } from '../utils/Logger';
-import { Utils } from '../utils/Utils';
+import {
+  ACElectricUtils,
+  Configuration,
+  Constants,
+  DCElectricUtils,
+  Utils,
+  logger,
+} from '../utils';
 import { WorkerProcessType } from '../worker';
 
 const moduleName = 'ChargingStationUtils';
@@ -191,13 +194,13 @@ export class ChargingStationUtils {
   }
 
   public static workerPoolInUse(): boolean {
-    return [WorkerProcessType.DYNAMIC_POOL, WorkerProcessType.STATIC_POOL].includes(
+    return [WorkerProcessType.dynamicPool, WorkerProcessType.staticPool].includes(
       Configuration.getWorker().processType
     );
   }
 
   public static workerDynamicPoolInUse(): boolean {
-    return Configuration.getWorker().processType === WorkerProcessType.DYNAMIC_POOL;
+    return Configuration.getWorker().processType === WorkerProcessType.dynamicPool;
   }
 
   public static warnDeprecatedTemplateKey(