diff --git a/lib/api/projects.rb b/lib/api/projects.rb index c3dc3da6..5a1b1779 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -176,7 +176,6 @@ module Gitlab authorize! :admin_project, user_project @hook = user_project.hooks.find(params[:hook_id]) @hook.destroy - nil end # Get a project repository branches