Skip to content

Commit

Permalink
use lodash find() instead of Array.prototype.find
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin WENNER committed Aug 3, 2015
1 parent 69cd909 commit 0290295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/file-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ List.prototype._isExcluded = function (path) {
//
// Returns the match or `undefined` if none found.
List.prototype._isIncluded = function (path) {
return this._patterns.find(function (pattern) {
return _.find(this._patterns, function (pattern) {
return mm(path, pattern.pattern)
})
}
Expand Down Expand Up @@ -133,7 +133,7 @@ List.prototype._exists = function (path) {
return mm(path, pattern.pattern)
})

return !!patterns.find(function (pattern) {
return !!_.find(patterns, function (pattern) {
return self._findFile(path, pattern)
})
}
Expand Down

0 comments on commit 0290295

Please sign in to comment.