Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Maybe? simplify function call/remove variable shadowing
  • Loading branch information
addaleax committed Sep 9, 2016
commit 514a8a7c541e6da1ac2ec4d61c1373c497873375
3 changes: 1 addition & 2 deletions benchmark/fs/bench-stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const bench = common.createBenchmark(main, {

function main(conf) {
const n = conf.n >>> 0;
const fn = fs[conf.kind];

bench.start();
(function r(cntr, fn) {
Expand All @@ -20,5 +19,5 @@ function main(conf) {
fn(__filename, function() {
r(cntr, fn);
});
}(n, fn));
}(n, fs[conf.kind]));
}