From 7484bcfff7fc8e132d94701b3af47f521ce117c5 Mon Sep 17 00:00:00 2001 From: Robb Kidd Date: Mon, 18 Jun 2012 17:52:16 -0400 Subject: Invert "unless .empty?" to "if .present?"; unless-else is evil. --- app/views/merge_requests/_commits.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit v1.2.3