Apply manual rubocop fixes

This commit is contained in:
Sebastian Serth
2021-05-14 11:07:11 +02:00
parent 6cbecb5b39
commit da0a682ffb
109 changed files with 431 additions and 416 deletions

View File

@ -52,9 +52,7 @@ class FileTree < Tree::TreeNode
private :map_to_js_tree
def node_icon(node)
if node.is_root?
folder_icon
elsif node.is_leaf?
if node.is_leaf? && !node.is_root?
file_icon(node.content)
else
folder_icon