OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
034ddb8
)
Invert "unless .empty?" to "if .present?"; unless-else is evil.
author
Robb Kidd
<robb@thekidds.org>
Mon, 18 Jun 2012 21:52:16 +0000
(17:52 -0400)
committer
Robb Kidd
<robb@thekidds.org>
Mon, 18 Jun 2012 22:32:46 +0000
(18:32 -0400)
app/views/merge_requests/_commits.html.haml
patch
|
blob
|
history
diff --git
a/app/views/merge_requests/_commits.html.haml
b/app/views/merge_requests/_commits.html.haml
index
441a7f3
..
49c8e8c
100644
(file)
--- 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