From: Jérôme Benoit Date: Sat, 22 Oct 2022 23:02:21 +0000 (+0200) Subject: Silence sonar X-Git-Tag: v2.3.7~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f44936aebf12fc2aa4f507680e84171367185788;p=poolifier.git Silence sonar Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index e97df555..6b12c2f9 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -105,7 +105,7 @@ export abstract class AbstractPool< this.getWorkerRunningTasks(workerCreated) === 0 ) { // Kill received from the worker, means that no new tasks are submitted to that worker for a while ( > maxInactiveTime) - void this.destroyWorker(workerCreated) + void (this.destroyWorker(workerCreated) as Promise) } }) return workerCreated