Commit c33b105f authored by Grzegorz Bizon's avatar Grzegorz Bizon

Make some conditions in `Ci::Build` more readable

parent ece114e6
...@@ -330,13 +330,15 @@ module Ci ...@@ -330,13 +330,15 @@ module Ci
end end
def artifacts_download_url def artifacts_download_url
download_namespace_project_build_artifacts_path(project.namespace, project, self) if if artifacts?
artifacts? download_namespace_project_build_artifacts_path(project.namespace, project, self)
end
end end
def artifacts_browse_url def artifacts_browse_url
browse_namespace_project_build_artifacts_path(project.namespace, project, self) if if artifacts?
artifacts? browse_namespace_project_build_artifacts_path(project.namespace, project, self)
end
end end
def artifacts_browser_supported? def artifacts_browser_supported?
......
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