From 53c3c4947fd2fd9a5e771dc90b491d941d9ebbe0 Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Sat, 27 Feb 2016 15:02:03 -0800 Subject: re-fix readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e73c12f..10e7cc8 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ async.map(['file1','file2','file3'], fs.stat, function(err, results){ async.filter(['file1','file2','file3'], function(filePath, callback) { fs.access(filePath, function(err) { - callback(!err) + callback(null, !err) }); }, function(results){ // results now equals an array of the existing files @@ -417,7 +417,7 @@ __Example__ ```js async.filter(['file1','file2','file3'], function(filePath, callback) { fs.access(filePath, function(err) { - callback(!err) + callback(null, !err) }); }, function(results){ // results now equals an array of the existing files -- cgit v1.2.1