Render empty string instead of nil
This commit is contained in:
parent
820e84662f
commit
e78e067204
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue