X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fabstract-worker.ts;h=381e4d9a7357ec70ed425fa4ab9d3ae990a775a7;hb=0f2c9e06f23863adf0858eb281a1de5124ae305d;hp=1b34fb139dd7d0d6513a298be184c5c342d8bcef;hpb=82ea6492d3318a170559bb57501dc16023bb18d8;p=poolifier.git diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 1b34fb13..381e4d9a 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -243,7 +243,7 @@ export abstract class AbstractWorker< * @returns The names of the worker's task functions. */ public listTaskFunctions (): string[] { - return Array.from(this.taskFunctions.keys()) + return [...this.taskFunctions.keys()] } /**