X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fworker%2Fthread-worker.ts;h=7f3cd950a992269fb7917b7eda296419a501b6f8;hb=8166b5b31ebb2d15bbdc112f1a86d3774fe21294;hp=2a50249f7bbd406ad6789d80167bace6cb009dc6;hpb=d35e571704515a8b729d3455e4784054f07c368f;p=poolifier.git diff --git a/src/worker/thread-worker.ts b/src/worker/thread-worker.ts index 2a50249f..7f3cd950 100644 --- a/src/worker/thread-worker.ts +++ b/src/worker/thread-worker.ts @@ -42,7 +42,8 @@ export class ThreadWorker< taskFunctions: TaskFunction | TaskFunctions, opts: WorkerOptions = {} ) { - super(isMainThread, parentPort as MessagePort, taskFunctions, opts) + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + super(isMainThread, parentPort!, taskFunctions, opts) } /** @inheritDoc */