From 5c85bc8c72222b81083a5e6c1f3002019da49a6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 19 Nov 2024 15:43:27 +0100 Subject: [PATCH] refactor: revert flagging worker options as readonly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/worker/abstract-worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 1ea46a23..9549d18c 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -194,7 +194,7 @@ export abstract class AbstractWorker< protected readonly isMain: boolean | undefined, private readonly mainWorker: MainWorker | null | undefined, taskFunctions: TaskFunction | TaskFunctions, - protected readonly opts: WorkerOptions = DEFAULT_WORKER_OPTIONS + protected opts: WorkerOptions = DEFAULT_WORKER_OPTIONS ) { if (this.isMain == null) { throw new Error('isMain parameter is mandatory') -- 2.34.1