Fix eslint rules (#5117)

* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
This commit is contained in:
Sergii Paryzhskyi
2016-10-25 21:34:47 +02:00
committed by Julian Lam
parent 727710fbd9
commit e515b791da
53 changed files with 132 additions and 139 deletions

View File

@@ -301,7 +301,7 @@ var privileges = require('./privileges');
category.parentCid = 0;
}
if (parseInt(category.parentCid, 10) === parseInt(parentCid, 10)){
if (parseInt(category.parentCid, 10) === parseInt(parentCid, 10)) {
tree.push(category);
category.children = Categories.getTree(categories, category.cid);
}
@@ -318,7 +318,7 @@ var privileges = require('./privileges');
var bullet = level ? '• ' : '';
category.value = category.cid;
category.text = level + bullet + category.name
category.text = level + bullet + category.name;
categoriesData.push(category);
category.children.forEach(function (child) {
@@ -349,7 +349,7 @@ var privileges = require('./privileges');
Categories.filterIgnoringUids = function (cid, uids, callback) {
async.waterfall([
function (next){
function (next) {
db.sortedSetScores('cid:' + cid + ':ignorers', uids, next);
},
function (scores, next) {