Skip to content
Snippets Groups Projects
Commit d0b9112f authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

save some lines and a local variable

parent 57c72cb0
Branches
Tags
1 merge request!5142Add a download buttons for Build Artifacts
Pipeline #
Loading
Loading
@@ -436,10 +436,8 @@ class Project < ActiveRecord::Base
builds.none
 
else
sha = ct.sha
builds.joins(:pipeline).
merge(Ci::Pipeline.where(sha: sha)).
merge(Ci::Pipeline.where(sha: ct.sha)).
where(name: build_name)
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment