Skip to content

Commit 08ba9d4

Browse files
vsemozhetbytevanlucas
authored andcommitted
benchmark: fix CLI arguments check in common.js
PR-URL: #12429 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3726131 commit 08ba9d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Benchmark.prototype._parseArgs = function(argv, configs) {
4343
// Parse configuration arguments
4444
for (const arg of argv) {
4545
const match = arg.match(/^(.+?)=([\s\S]*)$/);
46-
if (!match || !match[1]) {
46+
if (!match) {
4747
console.error('bad argument: ' + arg);
4848
process.exit(1);
4949
}

0 commit comments

Comments
 (0)