diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-01 09:52:19 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-01 14:39:48 +0200 |
commit | f727df5c845e2927eb66adf0f45ab0914bfa8b63 (patch) | |
tree | 2f9c4d6c350d8a9f8dec1b2445d9a77be2ea67ec /lib/api/v3/builds.rb | |
parent | e61f38d79eb85a7c601bd146d5b8e48a8b4418e5 (diff) | |
download | gitlab-ce-migrate-old-artifacts.tar.gz |
Add missing specsmigrate-old-artifacts
Diffstat (limited to 'lib/api/v3/builds.rb')
-rw-r--r-- | lib/api/v3/builds.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/api/v3/builds.rb b/lib/api/v3/builds.rb index 7ce7b43e3bd..93ad9eb26b8 100644 --- a/lib/api/v3/builds.rb +++ b/lib/api/v3/builds.rb @@ -225,16 +225,6 @@ module API find_build(id) || not_found! end - def present_artifacts!(artifacts_file) - if !artifacts_file.local_file? - redirect_to(build.artifacts_file.url) - elsif artifacts_file.exists? - present_file!(artifacts_file.path, artifacts_file.filename) - else - not_found! - end - end - def filter_builds(builds, scope) return builds if scope.nil? || scope.empty? |