refactor: remove unneeded type casting
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 4 Jan 2024 15:59:48 +0000 (16:59 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 4 Jan 2024 15:59:48 +0000 (16:59 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/worker/abstract-worker.ts

index 238f749e12325a9b18d47a1ec0e3871d0fc95cbe..7e264c3799cb94b4845b03e4db73f4697c084958 100644 (file)
@@ -241,8 +241,8 @@ export abstract class AbstractWorker<
    * @returns The names of the worker's task functions.
    */
   public listTaskFunctionNames (): string[] {
-    const names: string[] = [...this.taskFunctions.keys()]
-    let defaultTaskFunctionName: string = DEFAULT_TASK_NAME
+    const names = [...this.taskFunctions.keys()]
+    let defaultTaskFunctionName = DEFAULT_TASK_NAME
     for (const [name, fn] of this.taskFunctions) {
       if (
         name !== DEFAULT_TASK_NAME &&