handling err in src/meta/languages.js

This commit is contained in:
Julian Lam
2017-01-23 11:40:51 -05:00
parent 445eff9c1a
commit ea7d61e2e4

View File

@@ -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);