mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
style(eslint): match operator-linebreak preferences
This commit is contained in:
committed by
Julian Lam
parent
89c025d102
commit
ba619c7ec8
@@ -249,10 +249,10 @@ SocketGroups.create = function (socket, data, callback) {
|
||||
};
|
||||
|
||||
SocketGroups.delete = isOwner(function (socket, data, callback) {
|
||||
if (data.groupName === 'administrators'
|
||||
|| data.groupName === 'registered-users'
|
||||
|| data.groupName === 'guests'
|
||||
|| data.groupName === 'Global Moderators') {
|
||||
if (data.groupName === 'administrators' ||
|
||||
data.groupName === 'registered-users' ||
|
||||
data.groupName === 'guests' ||
|
||||
data.groupName === 'Global Moderators') {
|
||||
return callback(new Error('[[error:not-allowed]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user