summaryrefslogtreecommitdiff
path: root/benchmark/util/format.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/util/format.js')
-rw-r--r--benchmark/util/format.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/benchmark/util/format.js b/benchmark/util/format.js
index 5f9c4c3b59..042b8a93cc 100644
--- a/benchmark/util/format.js
+++ b/benchmark/util/format.js
@@ -22,9 +22,7 @@ const bench = common.createBenchmark(main, {
function main({ n, type }) {
// For testing, if supplied with an empty type, default to string.
- type = type || 'string';
-
- const [first, second] = inputs[type];
+ const [first, second] = inputs[type || 'string'];
bench.start();
for (var i = 0; i < n; i++) {