From c831d2bcf192839310f736ab508a0050eec451ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 17 Jul 2023 00:11:12 +0200 Subject: [PATCH] refactor: order configuration class methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Configuration.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index d9c297e9..ae3d8e9f 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -104,16 +104,6 @@ export class Configuration { return Configuration.getConfigurationData()?.stationTemplateUrls; } - public static workerPoolInUse(): boolean { - return [WorkerProcessType.dynamicPool, WorkerProcessType.staticPool].includes( - Configuration.buildWorkerSection().processType!, - ); - } - - public static workerDynamicPoolInUse(): boolean { - return Configuration.buildWorkerSection().processType === WorkerProcessType.dynamicPool; - } - public static getSupervisionUrls(): string | string[] | undefined { Configuration.warnDeprecatedConfigurationKey( 'supervisionURLs', @@ -146,6 +136,16 @@ export class Configuration { : SupervisionUrlDistribution.ROUND_ROBIN; } + public static workerPoolInUse(): boolean { + return [WorkerProcessType.dynamicPool, WorkerProcessType.staticPool].includes( + Configuration.buildWorkerSection().processType!, + ); + } + + public static workerDynamicPoolInUse(): boolean { + return Configuration.buildWorkerSection().processType === WorkerProcessType.dynamicPool; + } + private static buildUIServerSection(): UIServerConfiguration { if (hasOwnProp(Configuration.getConfigurationData(), 'uiWebSocketServer')) { console.error( -- 2.34.1