Commit e78e0672 authored by Alex Denisov's avatar Alex Denisov

Render empty string instead of nil

parent 820e8466
- url = submodule_item.url(@ref) rescue '' - url = submodule_item.url(@ref) rescue ''
- name = submodule_item.basename - name = submodule_item.basename
- return unless url - return '' unless url
%tr{ class: "tree-item", url: url } %tr{ class: "tree-item", url: url }
%td.tree-item-file-name %td.tree-item-file-name
= image_tag "submodule.png" = image_tag "submodule.png"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment