ESlint no-useless-concat, no-mixed-spaces-and-tabs

This commit is contained in:
Peter Jaszkowiak
2017-02-18 14:42:15 -07:00
parent fdf4f873bf
commit c18808fdeb
23 changed files with 60 additions and 60 deletions

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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);
});

View File

@@ -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) {

View File

@@ -50,5 +50,5 @@ module.exports = function (Posts) {
next(null, uids);
},
], callback);
};
};
};

View File

@@ -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);
});