From f2969b1bb08cbe1d2111e975a2a75d66c16acbef Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin <godfat@godfat.org> Date: Wed, 20 Jul 2016 00:23:45 +0800 Subject: [PATCH] Artifacts are plural, feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347/diffs#note_13173284 --- lib/api/builds.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api/builds.rb b/lib/api/builds.rb index bb9e8f1ae6e..7e5114052c4 100644 --- a/lib/api/builds.rb +++ b/lib/api/builds.rb @@ -70,7 +70,7 @@ module API build = get_build!(params[:build_id]) - present_artifact!(build.artifacts_file) + present_artifacts!(build.artifacts_file) end # Download the artifacts file from ref_name and job @@ -86,7 +86,7 @@ module API builds = user_project.latest_successful_builds_for(params[:ref_name]) latest_build = builds.find_by!(name: params[:job]) - present_artifact!(latest_build.artifacts_file) + present_artifacts!(latest_build.artifacts_file) end # Get a trace of a specific build of a project @@ -198,7 +198,7 @@ module API get_build(id) || not_found! end - def present_artifact!(artifacts_file) + def present_artifacts!(artifacts_file) if !artifacts_file.file_storage? redirect_to(build.artifacts_file.url) elsif artifacts_file.exists? -- 2.30.9