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>
This commit is contained in:
parent
4e07d210e1
commit
b4e670dc26
@ -70,7 +70,6 @@ function CLI(usage, settings) {
|
|||||||
} else {
|
} else {
|
||||||
// Bad case, abort
|
// Bad case, abort
|
||||||
this.abort(usage);
|
this.abort(usage);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,6 @@ Benchmark.prototype._run = function() {
|
|||||||
child.on('close', (code) => {
|
child.on('close', (code) => {
|
||||||
if (code) {
|
if (code) {
|
||||||
process.exit(code);
|
process.exit(code);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (queueIndex + 1 < self.queue.length) {
|
if (queueIndex + 1 < self.queue.length) {
|
||||||
|
@ -25,7 +25,6 @@ const cli = CLI(`usage: ./node compare.js [options] [--] <category> ...
|
|||||||
|
|
||||||
if (!cli.optional.new || !cli.optional.old) {
|
if (!cli.optional.new || !cli.optional.old) {
|
||||||
cli.abort(cli.usage);
|
cli.abort(cli.usage);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const binaries = ['old', 'new'];
|
const binaries = ['old', 'new'];
|
||||||
@ -98,7 +97,6 @@ if (showProgress) {
|
|||||||
child.once('close', (code) => {
|
child.once('close', (code) => {
|
||||||
if (code) {
|
if (code) {
|
||||||
process.exit(code);
|
process.exit(code);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (showProgress) {
|
if (showProgress) {
|
||||||
progress.completeRun(job);
|
progress.completeRun(job);
|
||||||
|
@ -67,7 +67,6 @@ if (format === 'csv') {
|
|||||||
child.once('close', (code) => {
|
child.once('close', (code) => {
|
||||||
if (code) {
|
if (code) {
|
||||||
process.exit(code);
|
process.exit(code);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are more benchmarks execute the next
|
// If there are more benchmarks execute the next
|
||||||
|
@ -17,7 +17,6 @@ const cli = CLI(`usage: ./node scatter.js [options] [--] <filename>
|
|||||||
|
|
||||||
if (cli.items.length !== 1) {
|
if (cli.items.length !== 1) {
|
||||||
cli.abort(cli.usage);
|
cli.abort(cli.usage);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create queue from the benchmarks list such both node versions are tested
|
// Create queue from the benchmarks list such both node versions are tested
|
||||||
|
Loading…
x
Reference in New Issue
Block a user