From: Jérôme Benoit Date: Mon, 18 Sep 2023 22:11:29 +0000 (+0200) Subject: refactor: silence sonar X-Git-Tag: v2.7.0~1^2~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=04714ef7597328d4ca3111dafb0a8fdf01b24e98;p=poolifier.git refactor: silence sonar Signed-off-by: Jérôme Benoit --- 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({