Render empty string instead of nil

This commit is contained in:
Alex Denisov 2013-01-21 09:48:25 +00:00
parent 820e84662f
commit e78e067204

View file

@ -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"