mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
ESlint keyword-spacing, no-multi-spaces
This commit is contained in:
@@ -89,7 +89,7 @@ widgets.getAreas = function (templates, locations, callback) {
|
||||
if (data && data[index] && data[index][location]) {
|
||||
try {
|
||||
returnData[template][location] = JSON.parse(data[index][location]);
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
winston.error('can not parse widget data. template: ' + template + ' location: ' + location);
|
||||
returnData[template][location] = [];
|
||||
}
|
||||
@@ -113,7 +113,7 @@ widgets.getArea = function (template, location, callback) {
|
||||
}
|
||||
try {
|
||||
result = JSON.parse(result);
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user