refactor: code reformatting
[poolifier.git] / src / pools / abstract-pool.ts
index 712de0b7da4c38c2808e1be61da7fced8e372da0..603409f020a721eedff0b3f130c9f36462d91bb6 100644 (file)
@@ -1125,14 +1125,14 @@ export abstract class AbstractPool<
       return new Set([
         // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
         this.opts.workerChoiceStrategy!,
-        ...(this.listTaskFunctionsProperties()
+        ...this.listTaskFunctionsProperties()
           .map(
             (taskFunctionProperties: TaskFunctionProperties) =>
               taskFunctionProperties.strategy
           )
           .filter(
             (strategy: WorkerChoiceStrategy | undefined) => strategy != null
-          ) as WorkerChoiceStrategy[]),
+          ),
       ])
     }
 
@@ -1225,7 +1225,6 @@ export abstract class AbstractPool<
     })
   }
 
-
   /** @inheritDoc */
   public mapExecute (
     data: Iterable<Data>,