From 4db8406cd780b8912b2cf3bd882a21228aba47a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 13 Jul 2022 23:26:08 +0200 Subject: [PATCH] Avoid to instantiated static only classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Constants.ts | 4 ++++ src/worker/WorkerConstants.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index a457bd5c..1c420879 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -119,4 +119,8 @@ export default class Constants { static readonly DEFAULT_UI_WEBSOCKET_SERVER_HOST = 'localhost'; static readonly DEFAULT_UI_WEBSOCKET_SERVER_PORT = 8080; + + private constructor() { + // This is intentional + } } diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts index 9a1caf8e..1e2e8cdc 100644 --- a/src/worker/WorkerConstants.ts +++ b/src/worker/WorkerConstants.ts @@ -5,4 +5,8 @@ export default class WorkerConstants { static readonly DEFAULT_POOL_MIN_SIZE = 4; static readonly DEFAULT_POOL_MAX_SIZE = 16; static readonly DEFAULT_ELEMENTS_PER_WORKER = 1; + + private constructor() { + // This is intentional + } } -- 2.34.1