Commit 0296a401 authored by Michael Kozono's avatar Michael Kozono

Move response status to end of block

parent 871fc894
...@@ -153,6 +153,7 @@ module API ...@@ -153,6 +153,7 @@ module API
destroy_conditionally!(group) do |group| destroy_conditionally!(group) do |group|
::Groups::DestroyService.new(group, current_user).execute ::Groups::DestroyService.new(group, current_user).execute
end end
status 204
end end
desc 'Get a list of projects in this group.' do desc 'Get a list of projects in this group.' do
...@@ -206,10 +207,10 @@ module API ...@@ -206,10 +207,10 @@ module API
group = find_group!(params[:id]) group = find_group!(params[:id])
authorize! :admin_group, group authorize! :admin_group, group
status 202
if group.pending_ldap_sync if group.pending_ldap_sync
LdapGroupSyncWorker.perform_async(group.id) LdapGroupSyncWorker.perform_async(group.id)
end end
status 202
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment