remove unnecessary checks

This commit is contained in:
Barış Soner Uşaklı
2017-05-27 00:47:04 -04:00
parent f1b8492164
commit bcc566fb68
7 changed files with 4 additions and 17 deletions

View File

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