diff options
author | Robb Kidd <robb@thekidds.org> | 2012-06-19 01:52:16 +0400 |
---|---|---|
committer | Robb Kidd <robb@thekidds.org> | 2012-06-19 02:32:46 +0400 |
commit | 7484bcfff7fc8e132d94701b3af47f521ce117c5 (patch) | |
tree | adb2f6b3c5f14ef856a3d3f8006afe96c0d414e8 /app | |
parent | 034ddb85fe86c1a3e13bda959a732b6bec11bbaa (diff) |
Invert "unless .empty?" to "if .present?"; unless-else is evil.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/merge_requests/_commits.html.haml | 2 |
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 |