mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-09 04:26:07 +02:00
linting
This commit is contained in:
@@ -45,7 +45,7 @@ flagsController.get = function (req, res, next) {
|
||||
|
||||
// If res.locals.cids is populated, then slim down the categories list
|
||||
if (res.locals.cids) {
|
||||
results.categories = results.categories.filter(function(category) {
|
||||
results.categories = results.categories.filter(function (category) {
|
||||
return res.locals.cids.indexOf(String(category.cid)) !== -1;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user