X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConfigurationUtils.ts;h=2a85bb0e2fd5686b603bf9a405181c3bc13f1b64;hb=3024d5b2497e97bdd355243a5d236fa3f7a4d874;hp=925e7c131c47b471761e7f2369040271bdcc3283;hpb=66a7748ddeda8c94d7562a1ce58d440319654a4c;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/ConfigurationUtils.ts b/src/utils/ConfigurationUtils.ts index 925e7c13..2a85bb0e 100644 --- a/src/utils/ConfigurationUtils.ts +++ b/src/utils/ConfigurationUtils.ts @@ -3,10 +3,10 @@ import { fileURLToPath } from 'node:url' import chalk from 'chalk' -import { Constants } from './Constants.js' -import { isNotEmptyString, logPrefix as utilsLogPrefix } from './Utils.js' import { type ElementsPerWorkerType, type FileType, StorageType } from '../types/index.js' import { WorkerProcessType } from '../worker/index.js' +import { Constants } from './Constants.js' +import { isNotEmptyString, logPrefix as utilsLogPrefix } from './Utils.js' export const logPrefix = (): string => { return utilsLogPrefix(' Simulator configuration |') @@ -71,7 +71,7 @@ export const checkWorkerElementsPerWorker = ( elementsPerWorker: ElementsPerWorkerType | undefined ): void => { if ( - elementsPerWorker !== undefined && + elementsPerWorker != null && elementsPerWorker !== 'auto' && elementsPerWorker !== 'all' && !Number.isSafeInteger(elementsPerWorker)