Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-01 22:56:17 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-01 22:56:17 +0300
commit9e211091a85c20adea63b89111240350d6d8ffcb (patch)
treeb4ba0fe2c948cdd32ed650371820c3ec376de83d /lib/api/branches.rb
parentb227355973fac017905833409e8cb721f9dbd36d (diff)
Enable Style/EmptyLines cop, remove redundant ones
Diffstat (limited to 'lib/api/branches.rb')
-rw-r--r--lib/api/branches.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/api/branches.rb b/lib/api/branches.rb
index 9f9ae75ff65..d467eb9d474 100644
--- a/lib/api/branches.rb
+++ b/lib/api/branches.rb
@@ -40,7 +40,6 @@ module API
# PUT /projects/:id/repository/branches/:branch/protect
put ':id/repository/branches/:branch/protect',
requirements: { branch: /.+/ } do
-
authorize_admin_project
@branch = user_project.repository.find_branch(params[:branch])
@@ -60,7 +59,6 @@ module API
# PUT /projects/:id/repository/branches/:branch/unprotect
put ':id/repository/branches/:branch/unprotect',
requirements: { branch: /.+/ } do
-
authorize_admin_project
@branch = user_project.repository.find_branch(params[:branch])