From 0a11683a2a0d22a794fc9b64d22b6c471202fa6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 20 Aug 2025 13:29:08 +0200 Subject: [PATCH] refactor: cleanup eslint-disable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/worker/WorkerSet.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index b0f29e64..e777fe65 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -118,10 +118,9 @@ export class WorkerSet extends Worke public async start (): Promise { this.addWorkerSetElement() // Add worker set element sequentially to optimize memory at startup - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - this.workerOptions.workerStartDelay! > 0 && - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - (await sleep(randomizeDelay(this.workerOptions.workerStartDelay!))) + if (this.workerOptions.workerStartDelay != null && this.workerOptions.workerStartDelay > 0) { + await sleep(randomizeDelay(this.workerOptions.workerStartDelay)) + } this.started = true this.emitter?.emit(WorkerSetEvents.started, this.info) } -- 2.43.0