mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-05 08:38:14 +02:00
ESlint keyword-spacing, no-multi-spaces
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = function (Groups) {
|
||||
};
|
||||
|
||||
Groups.sort = function (strategy, groups, next) {
|
||||
switch(strategy) {
|
||||
switch (strategy) {
|
||||
case 'count':
|
||||
groups = groups.sort(function (a, b) {
|
||||
return a.slug > b.slug;
|
||||
@@ -77,7 +77,7 @@ module.exports = function (Groups) {
|
||||
},
|
||||
function (users, next) {
|
||||
var uids = [];
|
||||
for(var i = 0; i < users.length; i += 1) {
|
||||
for (var i = 0; i < users.length; i += 1) {
|
||||
var field = users[i][searchBy];
|
||||
if (field.toLowerCase().startsWith(query)) {
|
||||
uids.push(users[i].uid);
|
||||
|
||||
@@ -131,7 +131,7 @@ module.exports = function (Groups) {
|
||||
},
|
||||
function (currentValue, next) {
|
||||
var currentlyPrivate = parseInt(currentValue.private, 10) === 1;
|
||||
if (!currentlyPrivate || currentlyPrivate === isPrivate) {
|
||||
if (!currentlyPrivate || currentlyPrivate === isPrivate) {
|
||||
return callback();
|
||||
}
|
||||
db.getSetMembers('group:' + groupName + ':pending', next);
|
||||
|
||||
Reference in New Issue
Block a user