From: Jérôme Benoit Date: Thu, 18 Mar 2021 18:11:29 +0000 (+0100) Subject: Simplify pool settings detection. X-Git-Tag: v1.0.1-0~84 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9ab7950c4e4b5f69ec598ef242cee677f9d4971e;p=e-mobility-charging-stations-simulator.git Simplify pool settings detection. Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 02164b1d..e515d968 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -213,7 +213,7 @@ export default class Utils { } static workerPoolInUse(): boolean { - return Configuration.getWorkerProcess() === WorkerProcessType.DYNAMIC_POOL || Configuration.getWorkerProcess() === WorkerProcessType.STATIC_POOL; + return [WorkerProcessType.DYNAMIC_POOL, WorkerProcessType.STATIC_POOL].includes(Configuration.getWorkerProcess()); } static workerDynamicPoolInUse(): boolean {