Skip to content

Commit

Permalink
fix: Improve performance of createRuleStats (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
romellem authored May 11, 2023
1 parent a770b8f commit 8428cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruleSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function createRuleStats(fileSet, rules) {
}

ruleStats[ruleName].count = ruleStats[ruleName].count + ruleCount;
ruleStats[ruleName].files = ruleStats[ruleName].files.concat(fileName);
ruleStats[ruleName].files.push(fileName);
});
});

Expand Down

0 comments on commit 8428cb8

Please sign in to comment.