diff --git a/benchmark/_cli.js b/benchmark/_cli.js index 36757c1e9b61fe..abd394694457c2 100644 --- a/benchmark/_cli.js +++ b/benchmark/_cli.js @@ -70,7 +70,6 @@ function CLI(usage, settings) { } else { // Bad case, abort this.abort(usage); - return; } } } diff --git a/benchmark/common.js b/benchmark/common.js index 41fb68bb289b9d..cad0550986bd18 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -169,7 +169,6 @@ Benchmark.prototype._run = function() { child.on('close', (code) => { if (code) { process.exit(code); - return; } if (queueIndex + 1 < self.queue.length) { diff --git a/benchmark/compare.js b/benchmark/compare.js index fe465eb9762129..bd7c4a95cbb617 100644 --- a/benchmark/compare.js +++ b/benchmark/compare.js @@ -25,7 +25,6 @@ const cli = CLI(`usage: ./node compare.js [options] [--] ... if (!cli.optional.new || !cli.optional.old) { cli.abort(cli.usage); - return; } const binaries = ['old', 'new']; @@ -98,7 +97,6 @@ if (showProgress) { child.once('close', (code) => { if (code) { process.exit(code); - return; } if (showProgress) { progress.completeRun(job); diff --git a/benchmark/run.js b/benchmark/run.js index 25a60f2d8d966e..7af2245ef321c9 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -67,7 +67,6 @@ if (format === 'csv') { child.once('close', (code) => { if (code) { process.exit(code); - return; } // If there are more benchmarks execute the next diff --git a/benchmark/scatter.js b/benchmark/scatter.js index 62de1cd0c166dc..10649e6bb51e97 100644 --- a/benchmark/scatter.js +++ b/benchmark/scatter.js @@ -17,7 +17,6 @@ const cli = CLI(`usage: ./node scatter.js [options] [--] if (cli.items.length !== 1) { cli.abort(cli.usage); - return; } // Create queue from the benchmarks list such both node versions are tested