Commit 3e2c0f26 authored by Rémy Coutable's avatar Rémy Coutable

Merge pull request #10118 from yasserhussain1110/unprotect-branch-not-found-message

API: Change the argument of `not_found!` in `:id/repository/branches/:branch/unprotect`
parents 74313988 d023a852
......@@ -64,7 +64,7 @@ module API
authorize_admin_project
@branch = user_project.repository.find_branch(params[:branch])
not_found!("Branch does not exist") unless @branch
not_found!("Branch") unless @branch
protected_branch = user_project.protected_branches.find_by(name: @branch.name)
protected_branch.destroy if protected_branch
......
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