handling err in src/meta/languages.js

v1.18.x
Julian Lam 8 years ago
parent 445eff9c1a
commit ea7d61e2e4

@ -28,9 +28,7 @@ function getTranslationTree(callback) {
}); });
// Filter out plugins with invalid paths // Filter out plugins with invalid paths
async.filter(paths, file.exists, function (err, paths) { async.filter(paths, file.exists, next);
next(null, paths);
});
}, },
function (paths, next) { function (paths, next) {
async.map(paths, Plugins.loadPluginInfo, next); async.map(paths, Plugins.loadPluginInfo, next);

Loading…
Cancel
Save