ESlint keyword-spacing, no-multi-spaces

This commit is contained in:
Peter Jaszkowiak
2017-02-18 01:52:56 -07:00
parent a5a3f3089a
commit 604358ecc4
116 changed files with 210 additions and 210 deletions

View File

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

View File

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