Skip to content

Commit

Permalink
Adjust use of async.filter to take into account error argument.
Browse files Browse the repository at this point in the history
caolan/async#1028 added support for errors in filter, which changed the
functions API.
  • Loading branch information
plietar committed Dec 12, 2016
1 parent f7296ab commit e0c5c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/content.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ ContentTree.fromDirectory = (env, directory, callback) ->
env.logger.verbose "ignoring #{ filename.relative } (matches: #{ pattern })"
include = false
break
callback include
, (result) -> callback null, result
callback null, include
, callback
else
callback null, filenames

Expand Down

0 comments on commit e0c5c5f

Please sign in to comment.