Skip to content
Snippets Groups Projects
Commit e78e0672 authored by Alex Denisov's avatar Alex Denisov
Browse files

Render empty string instead of nil

parent 820e8466
No related branches found
No related tags found
1 merge request!2673Render submodule bugfix
- 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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment