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
end
def artifacts_download_url
download_namespace_project_build_artifacts_path(project.namespace, project, self) if
artifacts?
if artifacts?
download_namespace_project_build_artifacts_path(project.namespace, project, self)
end
end
def artifacts_browse_url
browse_namespace_project_build_artifacts_path(project.namespace, project, self) if
artifacts?
if artifacts?
browse_namespace_project_build_artifacts_path(project.namespace, project, self)
end
end
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