diff options
author | gfyoung <gfyoung17+gitlab@gmail.com> | 2018-10-22 10:00:50 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-10-22 10:00:50 +0300 |
commit | c858f70d076dc44f6bf1ab1f7acb1fc13a12ab1b (patch) | |
tree | 40fa82826cf182f47b1c905e738c8ee955ad14c2 /lib/gitlab/workhorse.rb | |
parent | 173b1436b1622b85d4a81e3577c6492cbb93a8b8 (diff) |
Enable frozen string for lib/gitlab/*.rb
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r-- | lib/gitlab/workhorse.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb index 30a8c3578d8..e1f777e9cd1 100644 --- a/lib/gitlab/workhorse.rb +++ b/lib/gitlab/workhorse.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'base64' require 'json' require 'securerandom' @@ -63,7 +65,7 @@ module Gitlab def send_git_archive(repository, ref:, format:, append_sha:) format ||= 'tar.gz' - format.downcase! + format = format.downcase params = repository.archive_metadata(ref, Gitlab.config.gitlab.repository_downloads_path, format, append_sha: append_sha) raise "Repository or ref not found" if params.empty? |