benchmark: remove redundant +

PR-URL: https://github.com/nodejs/node/pull/17803
Refs: https://github.com/nodejs/code-and-learn/issues/72
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
sreepurnajasti 2017-12-21 10:55:21 +05:30 committed by Ruben Bridgewater
parent 4b9ba9b833
commit f6ae451a96
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -26,9 +26,9 @@ function createObj(source, add = '') {
}
function main(conf) {
const size = +conf.size;
const size = conf.size;
// TODO: Fix this "hack"
const n = (+conf.n) / size;
const n = conf.n / size;
var i;
const source = Array.apply(null, Array(size));