refactor: null -> undefined where appropriate
[poolifier.git] / benchmarks / benchmarks-utils.js
index aaf7521ff3044807e02078c2cde0f45c584586b1..48311a3f04b773c0d6f540eaf659b2b00f3e08d7 100644 (file)
@@ -64,7 +64,7 @@ const runPoolifierPool = async (pool, { taskExecutions, workerData }) => {
           if (executions === taskExecutions) {
             resolve({ ok: 1 })
           }
-          return null
+          return undefined
         })
         .catch(err => {
           console.error(err)
@@ -151,6 +151,7 @@ const runPoolifierPoolBenchmark = async (
               LIST_FORMATTER.format(this.filter('fastest').map('name'))
           )
           await pool.destroy()
+          pool = undefined
           resolve()
         })
         .run({ async: true })