diff --git a/benchmark/_cli.js b/benchmark/_cli.js index 0c39c0b1931f48..8aafb2b1b3c799 100644 --- a/benchmark/_cli.js +++ b/benchmark/_cli.js @@ -72,7 +72,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 e7866b60e36418..99e4c472109687 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', function(code) { if (code) { process.exit(code); - return; } if (showProgress) { progress.completeRun(job); diff --git a/benchmark/run.js b/benchmark/run.js index af2bd4d5c2bcec..f7cd810ef4fb5f 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -67,7 +67,6 @@ if (format === 'csv') { child.once('close', function(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 70c3e25bb9f2ad..cfe99ef61433ff 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