Permalink
Browse files

Adjust use of async.filter to take into account error argument.

caolan/async#1028 added support for errors in filter, which changed the
functions API.
1 parent f7296ab commit e0c5c5f799feb87e50f6acf4bed8e0ddc0d549a7 @plietar plietar committed Dec 12, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/content.coffee
@@ -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

0 comments on commit e0c5c5f

Please sign in to comment.