Skip to content

Commit

Permalink
Merge pull request #1533 from kketch/fix-es6-array-find-usage
Browse files Browse the repository at this point in the history
use lodash find() instead of Array.prototype.find
  • Loading branch information
dignifiedquire committed Aug 4, 2015
2 parents 0a4dcc6 + 3bd15a7 commit f8a41e4
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 f8a41e4

Please sign in to comment.