Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobb Kidd <robb@thekidds.org>2012-06-19 01:52:16 +0400
committerRobb Kidd <robb@thekidds.org>2012-06-19 02:32:46 +0400
commit7484bcfff7fc8e132d94701b3af47f521ce117c5 (patch)
treeadb2f6b3c5f14ef856a3d3f8006afe96c0d414e8 /app
parent034ddb85fe86c1a3e13bda959a732b6bec11bbaa (diff)
Invert "unless .empty?" to "if .present?"; unless-else is evil.
Diffstat (limited to 'app')
-rw-r--r--app/views/merge_requests/_commits.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/merge_requests/_commits.html.haml b/app/views/merge_requests/_commits.html.haml
index 441a7f32ef4..49c8e8cd77d 100644
--- a/app/views/merge_requests/_commits.html.haml
+++ b/app/views/merge_requests/_commits.html.haml
@@ -1,4 +1,4 @@
-- unless @commits.empty?
+- if @commits.present?
.ui-box
%h5 Commits (#{@commits.count})
.merge-request-commits