From 04714ef7597328d4ca3111dafb0a8fdf01b24e98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 19 Sep 2023 00:11:29 +0200 Subject: [PATCH] refactor: silence sonar 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 8bbd07a7..bd03d86e 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -386,7 +386,7 @@ export abstract class AbstractWorker< new Function(`return ${taskFunction as string}`)() as TaskFunction< Data, Response - > + > /* NOSONAR */ ) } else if (taskFunctionOperation === 'remove') { response = this.removeTaskFunction(taskFunctionName as string) @@ -607,7 +607,7 @@ export abstract class AbstractWorker< taskPerformance, taskId }) - return null + return undefined }) .catch(error => { this.sendToMainWorker({ -- 2.34.1