summaryrefslogtreecommitdiff
path: root/lib/api/branches.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-22 20:38:05 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-10-24 11:33:38 +0530
commitb803bc7bb8ad481790d01848902e80602e77da67 (patch)
tree912263f61ddfcf849380edf475942f4fdeca46cf /lib/api/branches.rb
parentcef10ef7d7a20a78d377f711867e361bb51fbaf2 (diff)
downloadgitlab-ce-b803bc7bb8ad481790d01848902e80602e77da67.tar.gz
Implement review comments from @DouweM.
Diffstat (limited to 'lib/api/branches.rb')
-rw-r--r--lib/api/branches.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/branches.rb b/lib/api/branches.rb
index 6941cc4aca6..7feb47784b7 100644
--- a/lib/api/branches.rb
+++ b/lib/api/branches.rb
@@ -57,11 +57,11 @@ module API
developers_can_merge = to_boolean(params[:developers_can_merge])
developers_can_push = to_boolean(params[:developers_can_push])
- params = {
+ protected_branch_params = {
name: @branch.name,
}
- service_args = [user_project, current_user, params,
+ service_args = [user_project, current_user, protected_branch_params,
developers_can_push: developers_can_push,
developers_can_merge: developers_can_merge]