From ea7d61e2e4b66d4c4ec06b2512ea443670605baa Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 23 Jan 2017 11:40:51 -0500 Subject: [PATCH] handling err in src/meta/languages.js --- src/meta/languages.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/meta/languages.js b/src/meta/languages.js index fd4c9bb0fc..bac7a2ba33 100644 --- a/src/meta/languages.js +++ b/src/meta/languages.js @@ -28,9 +28,7 @@ function getTranslationTree(callback) { }); // Filter out plugins with invalid paths - async.filter(paths, file.exists, function (err, paths) { - next(null, paths); - }); + async.filter(paths, file.exists, next); }, function (paths, next) { async.map(paths, Plugins.loadPluginInfo, next);