diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-01 21:56:17 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-01 21:56:17 +0200 |
commit | 9e211091a85c20adea63b89111240350d6d8ffcb (patch) | |
tree | b4ba0fe2c948cdd32ed650371820c3ec376de83d /lib/api/branches.rb | |
parent | b227355973fac017905833409e8cb721f9dbd36d (diff) | |
download | gitlab-ce-9e211091a85c20adea63b89111240350d6d8ffcb.tar.gz |
Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-lines
Diffstat (limited to 'lib/api/branches.rb')
-rw-r--r-- | lib/api/branches.rb | 2 |
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]) |