refactor: silence sonar
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 18 Sep 2023 22:11:29 +0000 (00:11 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 18 Sep 2023 22:11:29 +0000 (00:11 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/worker/abstract-worker.ts

index 8bbd07a713c2a30c7f4614012350de54ed69bf55..bd03d86e06eefee9871215a49aeb11343236be0d 100644 (file)
@@ -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({