From: Jérôme Benoit Date: Wed, 23 Aug 2023 11:19:46 +0000 (+0200) Subject: refactor: remove unreachable code X-Git-Tag: v2.6.32~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1979fd3b8756ec4c192f96b6ca3be770c0fd6401;p=poolifier.git refactor: remove unreachable code Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 7310e9ef..e61991f2 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -921,13 +921,6 @@ export abstract class AbstractPool< workerTaskStatistics.executing > 0 ) { --workerTaskStatistics.executing - } else if ( - workerTaskStatistics.executing != null && - workerTaskStatistics.executing < 0 - ) { - throw new Error( - 'Worker usage statistic for tasks executing cannot be negative' - ) } if (message.taskError == null) { ++workerTaskStatistics.executed