From bbbb1f60780d9b8ef812769e215be830c4d968b8 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sat, 15 Apr 2017 22:45:29 +0300 Subject: [PATCH] benchmark: fix CLI arguments check in common.js PR-URL: https://github.com/nodejs/node/pull/12429 Reviewed-By: Anna Henningsen Reviewed-By: Benjamin Gruenbaum Reviewed-By: Joyee Cheung Reviewed-By: James M Snell --- benchmark/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/common.js b/benchmark/common.js index 77ebe0bd1dc..50c8e21244f 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -43,7 +43,7 @@ Benchmark.prototype._parseArgs = function(argv, configs) { // Parse configuration arguments for (const arg of argv) { const match = arg.match(/^(.+?)=([\s\S]*)$/); - if (!match || !match[1]) { + if (!match) { console.error('bad argument: ' + arg); process.exit(1); }