summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorZYSzys <17367077526@163.com>2019-02-02 13:12:06 +0800
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-02-07 13:21:33 +0100
commitb4e670dc26b50271457a257ccb244b14ff323b64 (patch)
treec4c002d09bf234abfd2c4bdeedf897af379fcd1f /benchmark
parent4e07d210e1809b4899ab22f44c75f16cf0cee9cc (diff)
downloadandroid-node-v8-b4e670dc26b50271457a257ccb244b14ff323b64.tar.gz
android-node-v8-b4e670dc26b50271457a257ccb244b14ff323b64.tar.bz2
android-node-v8-b4e670dc26b50271457a257ccb244b14ff323b64.zip
benchmark: remove unreachable return
PR-URL: https://github.com/nodejs/node/pull/25883 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/_cli.js1
-rw-r--r--benchmark/common.js1
-rw-r--r--benchmark/compare.js2
-rw-r--r--benchmark/run.js1
-rw-r--r--benchmark/scatter.js1
5 files changed, 0 insertions, 6 deletions
diff --git a/benchmark/_cli.js b/benchmark/_cli.js
index 36757c1e9b..abd3946944 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 41fb68bb28..cad0550986 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 fe465eb976..bd7c4a95cb 100644
--- a/benchmark/compare.js
+++ b/benchmark/compare.js
@@ -25,7 +25,6 @@ const cli = CLI(`usage: ./node compare.js [options] [--] <category> ...
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 25a60f2d8d..7af2245ef3 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 62de1cd0c1..10649e6bb5 100644
--- a/benchmark/scatter.js
+++ b/benchmark/scatter.js
@@ -17,7 +17,6 @@ const cli = CLI(`usage: ./node scatter.js [options] [--] <filename>
if (cli.items.length !== 1) {
cli.abort(cli.usage);
- return;
}
// Create queue from the benchmarks list such both node versions are tested