ESlint comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 19:31:21 -07:00
parent aa64ec7db1
commit bc1d70c126
345 changed files with 1974 additions and 1978 deletions

View File

@@ -27,7 +27,7 @@ Categories.getAll = function (socket, data, callback) {
},
function (result, next) {
next(null, categories.getTree(result.categories, 0));
}
},
], function (err, categoriesTree) {
if (err) {
return callback(err);

View File

@@ -15,7 +15,7 @@ Groups.create = function (socket, data, callback) {
groups.create({
name: data.name,
description: data.description,
ownerUid: socket.uid
ownerUid: socket.uid,
}, callback);
};
@@ -33,7 +33,7 @@ Groups.join = function (socket, data, callback) {
return next(new Error('[[error:group-already-member]]'));
}
groups.join(data.groupName, data.uid, next);
}
},
], callback);
};
@@ -55,7 +55,7 @@ Groups.leave = function (socket, data, callback) {
return next(new Error('[[error:group-not-member]]'));
}
groups.leave(data.groupName, data.uid, next);
}
},
], callback);
};

View File

@@ -13,7 +13,7 @@ var stats = {};
var totals = {};
var SocketRooms = {
stats: stats,
totals: totals
totals: totals,
};
@@ -66,7 +66,7 @@ SocketRooms.getAll = function (socket, data, callback) {
recent: 0,
unread: 0,
topics: 0,
category: 0
category: 0,
};
for (var instance in stats) {
@@ -109,11 +109,11 @@ SocketRooms.getAll = function (socket, data, callback) {
topTenTopics.forEach(function (topic, index) {
totals.topics[topic.tid] = {
value: topic.count || 0,
title: validator.escape(String(titles[index].title))
title: validator.escape(String(titles[index].title)),
};
});
next(null, totals);
}
},
], callback);
};
@@ -143,9 +143,9 @@ SocketRooms.getLocalStats = function (callback) {
recent: 0,
unread: 0,
topics: 0,
category: 0
category: 0,
},
topics: {}
topics: {},
};
if (io) {

View File

@@ -117,7 +117,7 @@ User.sendValidationEmail = function (socket, uids, callback) {
next();
}
}, next);
}
},
], callback);
};
@@ -177,17 +177,17 @@ function deleteUsers(socket, uids, method, callback) {
type: 'user-delete',
uid: socket.uid,
targetUid: uid,
ip: socket.ip
ip: socket.ip,
}, next);
},
function (next) {
plugins.fireHook('action:user.delete', {
callerUid: socket.uid,
uid: uid,
ip: socket.ip
ip: socket.ip,
});
next();
}
},
], next);
}, callback);
}
@@ -220,7 +220,7 @@ User.search = function (socket, data, callback) {
}
});
next(null, searchData);
}
},
], callback);
};
@@ -238,10 +238,10 @@ User.acceptRegistration = function (socket, data, callback) {
type: 'registration-approved',
uid: socket.uid,
ip: socket.ip,
targetUid: uid
targetUid: uid,
});
next(null, uid);
}
},
], callback);
};
@@ -258,7 +258,7 @@ User.rejectRegistration = function (socket, data, callback) {
username: data.username,
});
next();
}
},
], callback);
};