Simplify pool settings detection.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 18 Mar 2021 18:11:29 +0000 (19:11 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 18 Mar 2021 18:11:29 +0000 (19:11 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/Utils.ts

index 02164b1d3be956ec4edb9e1a537d624ba7b725bf..e515d96875595011045400a398c18bfe30116ff7 100644 (file)
@@ -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 {