summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-14 14:25:07 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-14 14:25:07 +0800
commit5544852825d637dfe24b53e93b1e95d21767783c (patch)
tree0e9b151f7e1ab52c930b7474b3648a13d8e1f204
parent66b91ce9ac70025093d52247ecfaa3f47536809f (diff)
downloadgitlab-ce-5544852825d637dfe24b53e93b1e95d21767783c.tar.gz
Remove blank line between if/else clause, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13047184
-rw-r--r--app/models/project.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 2a9d68d10d2..48bb9743439 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -434,7 +434,6 @@ class Project < ActiveRecord::Base
if ct.nil?
builds.none
-
else
builds.joins(:pipeline).
merge(Ci::Pipeline.where(sha: ct.sha)).