From: Jérôme Benoit Date: Sat, 13 Feb 2021 10:15:30 +0000 (+0100) Subject: Benchmark: remove unneeded then at promise handling (#136) X-Git-Tag: v2.0.0-beta.2~40 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1a5fb94cfa24327bda128d8accc0ea0d91f64057;p=poolifier.git Benchmark: remove unneeded then at promise handling (#136) --- diff --git a/benchmarks/myBench.js b/benchmarks/myBench.js index 24ccba53..a69de002 100644 --- a/benchmarks/myBench.js +++ b/benchmarks/myBench.js @@ -110,10 +110,6 @@ async function workerpoolTest () { .exec('yourFunction', [workerData]) .then(res => { executions++ - return null - }) - .catch(err => console.error(err)) - .then(res => { if (tasks === executions) { return console.log( `workerpool take ${