mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-02 01:57:38 +02:00
ESlint no-useless-concat, no-mixed-spaces-and-tabs
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = function (Categories) {
|
||||
};
|
||||
|
||||
Categories.getTopicIds = function (cid, set, reverse, start, stop, callback) {
|
||||
var pinnedTids;
|
||||
var pinnedTids;
|
||||
var pinnedCount;
|
||||
var totalPinnedCount;
|
||||
|
||||
|
||||
@@ -115,9 +115,9 @@ settingsController.get = function (req, res, callback) {
|
||||
}
|
||||
|
||||
userData.homePageRoutes.push({
|
||||
route: 'custom',
|
||||
name: 'Custom',
|
||||
selected: isCustom,
|
||||
route: 'custom',
|
||||
name: 'Custom',
|
||||
selected: isCustom,
|
||||
});
|
||||
|
||||
userData.bootswatchSkinOptions.forEach(function (skin) {
|
||||
|
||||
@@ -362,13 +362,13 @@ module.exports = function (db, module) {
|
||||
|
||||
var sets = {};
|
||||
data.forEach(function (set) {
|
||||
sets[set._key] = sets[set._key] || [];
|
||||
sets[set._key].push(set.value);
|
||||
sets[set._key] = sets[set._key] || [];
|
||||
sets[set._key].push(set.value);
|
||||
});
|
||||
|
||||
var returnData = new Array(keys.length);
|
||||
for (var i = 0; i < keys.length; i += 1) {
|
||||
returnData[i] = sets[keys[i]] || [];
|
||||
returnData[i] = sets[keys[i]] || [];
|
||||
}
|
||||
callback(null, returnData);
|
||||
});
|
||||
|
||||
@@ -39,7 +39,7 @@ function getTranslationTree(callback) {
|
||||
// generate list of languages and namespaces
|
||||
function (plugins, next) {
|
||||
var languages = [];
|
||||
var namespaces = [];
|
||||
var namespaces = [];
|
||||
|
||||
// pull languages and namespaces from paths
|
||||
function extrude(languageDir, paths) {
|
||||
|
||||
@@ -50,5 +50,5 @@ module.exports = function (Posts) {
|
||||
next(null, uids);
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -422,10 +422,10 @@ function getChildrenCids(cids, uid, callback) {
|
||||
|
||||
childrenCategories.forEach(function (childrens) {
|
||||
categories.flattenCategories(allCategories, childrens);
|
||||
childrenCids = childrenCids.concat(allCategories.map(function (category) {
|
||||
return category && category.cid;
|
||||
}));
|
||||
});
|
||||
childrenCids = childrenCids.concat(allCategories.map(function (category) {
|
||||
return category && category.cid;
|
||||
}));
|
||||
});
|
||||
|
||||
callback(null, childrenCids);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user