refactor: order configuration class methods
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 16 Jul 2023 22:11:12 +0000 (00:11 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 16 Jul 2023 22:11:12 +0000 (00:11 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Configuration.ts

index d9c297e99636834542ba74589d173765eb4a1558..ae3d8e9f186aeb47e89d71a97db1f84273c87cf5 100644 (file)
@@ -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(