Commit 7484bcfff7fc8e132d94701b3af47f521ce117c5

Authored by Robb Kidd
1 parent 034ddb85

Invert "unless .empty?" to "if .present?"; unless-else is evil.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/merge_requests/_commits.html.haml
1   -- unless @commits.empty?
  1 +- if @commits.present?
2 2 .ui-box
3 3 %h5 Commits (#{@commits.count})
4 4 .merge-request-commits
... ...