Benchmark: remove unneeded then at promise handling (#136)
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 13 Feb 2021 10:15:30 +0000 (11:15 +0100)
committerGitHub <noreply@github.com>
Sat, 13 Feb 2021 10:15:30 +0000 (11:15 +0100)
benchmarks/myBench.js

index 24ccba53aee46614ed6128efe74b8637f9e010af..a69de002aab4c6840e03601b34546e3b54c29056 100644 (file)
@@ -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 ${