From 9ab7950c4e4b5f69ec598ef242cee677f9d4971e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 18 Mar 2021 19:11:29 +0100 Subject: [PATCH] Simplify pool settings detection. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.34.1