summaryrefslogtreecommitdiff
path: root/app/controllers/projects/protected_branches_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/protected_branches_controller.rb')
-rw-r--r--app/controllers/projects/protected_branches_controller.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/projects/protected_branches_controller.rb b/app/controllers/projects/protected_branches_controller.rb
index ed170bb5595..3f541fe18dc 100644
--- a/app/controllers/projects/protected_branches_controller.rb
+++ b/app/controllers/projects/protected_branches_controller.rb
@@ -11,7 +11,6 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
end
def create
- branch_params = protected_branch_params
@project.protected_branches.create(protected_branch_params)
if params[:protected_branch][:branch_index].nil?