new Function(`return ${taskFunction as string}`)() as TaskFunction<
Data,
Response
- >
+ > /* NOSONAR */
)
} else if (taskFunctionOperation === 'remove') {
response = this.removeTaskFunction(taskFunctionName as string)
taskPerformance,
taskId
})
- return null
+ return undefined
})
.catch(error => {
this.sendToMainWorker({