no need for map

This commit is contained in:
Barış Soner Uşaklı
2015-05-28 15:52:00 -04:00
parent ee17367cc1
commit a14e22d534

View File

@@ -337,7 +337,7 @@ var async = require('async'),
if (err) {
return callback(err);
}
groupData = groupData.map(function(group) {
groupData.forEach(function(group) {
if (group) {
group.userTitle = validator.escape(group.userTitle) || validator.escape(group.name);
group.userTitleEnabled = group.userTitleEnabled ? parseInt(group.userTitleEnabled, 10) === 1 : true;
@@ -351,7 +351,6 @@ var async = require('async'),
group['cover:position'] = '50% 50%';
}
}
return group;
});
plugins.fireHook('filter:groups.get', {groups: groupData}, function(err, data) {