mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
handling err in src/meta/languages.js
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user