mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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:
1 parent
4b9ba9b833
commit
f6ae451a96
1 file changed
+2
-2
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user