Skip to content

Commit

Permalink
refactor(lodash): use omitBy instead of omit
Browse files Browse the repository at this point in the history
  • Loading branch information
blond committed Aug 9, 2016
1 parent 115ef5f commit b6bf5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function filterAndSaveCoverage(coverage, opts) {
}

function filterCoverage(coverage, exclude) {
return _.omit(coverage, function (value, fileName) {
return _.omitBy(coverage, function (value, fileName) {
return exclude.some(function (pattern) {
return minimatch(fileName, pattern, { matchBase: true });
});
Expand Down

0 comments on commit b6bf5ae

Please sign in to comment.