remove unneeded code
This commit is contained in:
parent
e3f82140d8
commit
b755279cf0
|
@ -35,7 +35,6 @@ class Admin::GroupsController < Admin::AdminController
|
||||||
id
|
id
|
||||||
end
|
end
|
||||||
invalid_users = users.reject! { |u| valid_emails[u] || valid_usernames[u] }
|
invalid_users = users.reject! { |u| valid_emails[u] || valid_usernames[u] }
|
||||||
valid_users.flatten!
|
|
||||||
group.bulk_add(valid_users) if valid_users.present?
|
group.bulk_add(valid_users) if valid_users.present?
|
||||||
users_added = valid_users.count
|
users_added = valid_users.count
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue