BigW Consortium Gitlab

Commit d0b9112f by Lin Jen-Shin

save some lines and a local variable

parent 57c72cb0
...@@ -436,10 +436,8 @@ class Project < ActiveRecord::Base ...@@ -436,10 +436,8 @@ class Project < ActiveRecord::Base
builds.none builds.none
else else
sha = ct.sha
builds.joins(:pipeline). builds.joins(:pipeline).
merge(Ci::Pipeline.where(sha: sha)). merge(Ci::Pipeline.where(sha: ct.sha)).
where(name: build_name) where(name: build_name)
end end
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