small cleanup to postSummary

This commit is contained in:
barisusakli
2014-07-30 18:40:00 -04:00
parent 9312675a77
commit d97af5020a
2 changed files with 8 additions and 22 deletions

View File

@@ -263,7 +263,7 @@ var fs = require('fs'),
async.each(languages, function(pathToLang, next) {
fs.readFile(pathToLang, function(err, file) {
try {
var json = JSON.parse(file.toString());
var json = JSON.parse(file.toString());
} catch (err) {
winston.error('[plugins] Unable to parse custom language file: ' + pathToLang + '\r\n' + err.stack);
return next(err);