diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-03 10:59:43 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-03 10:59:43 +0200 |
commit | 080997d87edcafd7afd3c3aa01da441e87493fdd (patch) | |
tree | 42ea3a3d66cf2c18caccd8f1251e2459ac2b59a9 /lib/api/repositories.rb | |
parent | ae5f17ae2dc0009ca5fce9a46db18af943dffbd5 (diff) | |
download | gitlab-ce-080997d87edcafd7afd3c3aa01da441e87493fdd.tar.gz |
Enable Lint/AmbiguousOperator rubocop coprubocop/enable-ambiguous-operator-rubocop-lint
See #17478
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r-- | lib/api/repositories.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb index 62161aadb9a..9cb14e95ebc 100644 --- a/lib/api/repositories.rb +++ b/lib/api/repositories.rb @@ -57,7 +57,7 @@ module API not_found! "File" unless blob content_type 'text/plain' - header *Gitlab::Workhorse.send_git_blob(repo, blob) + header(*Gitlab::Workhorse.send_git_blob(repo, blob)) end # Get a raw blob contents by blob sha @@ -83,7 +83,7 @@ module API env['api.format'] = :txt content_type blob.mime_type - header *Gitlab::Workhorse.send_git_blob(repo, blob) + header(*Gitlab::Workhorse.send_git_blob(repo, blob)) end # Get a an archive of the repository @@ -98,7 +98,7 @@ module API authorize! :download_code, user_project begin - header *Gitlab::Workhorse.send_git_archive(user_project, params[:sha], params[:format]) + header(*Gitlab::Workhorse.send_git_archive(user_project, params[:sha], params[:format])) rescue not_found!('File') end |