mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
remove unnecessary checks
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = function (Groups) {
|
||||
Groups.getGroupsData([groupName], next);
|
||||
},
|
||||
function (groupsData, next) {
|
||||
if (!Array.isArray(groupsData) || !groupsData[0]) {
|
||||
if (!groupsData[0]) {
|
||||
return callback();
|
||||
}
|
||||
groupObj = groupsData[0];
|
||||
|
||||
Reference in New Issue
Block a user