提交 d0b9112f 编写于 作者: L Lin Jen-Shin

save some lines and a local variable

上级 57c72cb0
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册