summaryrefslogtreecommitdiff
path: root/app/views/tree
diff options
context:
space:
mode:
authorAlex Denisov <1101.debian@gmail.com>2013-01-21 09:48:25 +0000
committerAlex Denisov <1101.debian@gmail.com>2013-01-21 09:48:25 +0000
commite78e067204dbb394a4eab4fe706276c489b05f63 (patch)
tree214a044b77ff365709f0e3bfa2f38064ce26263e /app/views/tree
parent820e84662f429f688e519641f5fadfdf8e845611 (diff)
downloadgitlab-ce-e78e067204dbb394a4eab4fe706276c489b05f63.tar.gz
Render empty string instead of nil
Diffstat (limited to 'app/views/tree')
-rw-r--r--app/views/tree/_submodule_item.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tree/_submodule_item.html.haml b/app/views/tree/_submodule_item.html.haml
index b0562fe1b19..092a024afbc 100644
--- a/app/views/tree/_submodule_item.html.haml
+++ b/app/views/tree/_submodule_item.html.haml
@@ -1,6 +1,6 @@
- url = submodule_item.url(@ref) rescue ''
- name = submodule_item.basename
-- return unless url
+- return '' unless url
%tr{ class: "tree-item", url: url }
%td.tree-item-file-name
= image_tag "submodule.png"