mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
removed unused var added error log
This commit is contained in:
@@ -204,7 +204,10 @@
|
||||
winston = require('winston');
|
||||
|
||||
utils.walk(path.join(__dirname, '../language', (Meta.config.defaultLang || 'en_GB')), function (err, data) {
|
||||
var loaded = data.length;
|
||||
if(err) {
|
||||
console.log(err.message);
|
||||
return;
|
||||
}
|
||||
|
||||
for (var d in data) {
|
||||
if (data.hasOwnProperty(d)) {
|
||||
|
||||
Reference in New Issue
Block a user