perf: remove unneeded condition in tasks stealing code
[poolifier.git] / examples / javascript / fixedExample.js
index 85f159d3bec21abe6345d56f0607a32f77dfe303..99d1a5e1f0e0cecfaf7e3755aecd044e5ae3480f 100644 (file)
@@ -23,9 +23,9 @@ for (let i = 1; i <= iterations; i++) {
     .then(() => {
       resolved++
       if (resolved === iterations) {
-        console.info('Time taken is ' + (performance.now() - start))
-        console.info('The pool was ready for ' + poolReady + ' times')
-        return console.info('The pool was busy for ' + poolBusy + ' times')
+        console.info(`Time taken is ${performance.now() - start}`)
+        console.info(`The pool was ready for ${poolReady} times`)
+        return console.info(`The pool was busy for ${poolBusy} times`)
       }
       return null
     })