Commit 6dcb75f9 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 78c37bdd
...@@ -205,10 +205,8 @@ module API ...@@ -205,10 +205,8 @@ module API
def present_artifact!(artifacts_file) def present_artifact!(artifacts_file)
if !artifacts_file.file_storage? if !artifacts_file.file_storage?
redirect_to(build.artifacts_file.url) redirect_to(build.artifacts_file.url)
elsif artifacts_file.exists? elsif artifacts_file.exists?
present_file!(artifacts_file.path, artifacts_file.filename) present_file!(artifacts_file.path, artifacts_file.filename)
else else
not_found! not_found!
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment