mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
ESlint object-curly-spacing
This commit is contained in:
@@ -16,8 +16,8 @@ admin.get = function (callback) {
|
||||
{ name: 'Global Header', template: 'global', location: 'header' },
|
||||
{ name: 'Global Footer', template: 'global', location: 'footer' },
|
||||
|
||||
{ name: 'Group Page (Left)', template: 'groups/details.tpl', location: 'left'},
|
||||
{ name: 'Group Page (Right)', template: 'groups/details.tpl', location: 'right'},
|
||||
{ name: 'Group Page (Left)', template: 'groups/details.tpl', location: 'left' },
|
||||
{ name: 'Group Page (Right)', template: 'groups/details.tpl', location: 'right' },
|
||||
];
|
||||
|
||||
plugins.fireHook('filter:widgets.getAreas', defaultAreas, next);
|
||||
|
||||
@@ -26,7 +26,7 @@ widgets.render = function (uid, area, req, res, callback) {
|
||||
widgetsByLocation[location] = data.global[location].concat(data[area.template][location]);
|
||||
|
||||
if (!widgetsByLocation[location].length) {
|
||||
return done(null, {location: location, widgets: []});
|
||||
return done(null, { location: location, widgets: [] });
|
||||
}
|
||||
|
||||
async.map(widgetsByLocation[location], function (widget, next) {
|
||||
@@ -59,14 +59,14 @@ widgets.render = function (uid, area, req, res, callback) {
|
||||
body: html,
|
||||
});
|
||||
|
||||
next(null, {html: html});
|
||||
next(null, { html: html });
|
||||
});
|
||||
} else {
|
||||
next(null, {html: html});
|
||||
next(null, { html: html });
|
||||
}
|
||||
});
|
||||
}, function (err, result) {
|
||||
done(err, {location: location, widgets: result.filter(Boolean)});
|
||||
done(err, { location: location, widgets: result.filter(Boolean) });
|
||||
});
|
||||
}, callback);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user