Remove unnecessary return statements in tree.rb

This commit is contained in:
Stan Hu 2019-03-07 06:33:55 -08:00
parent 28883d8e44
commit 46c8cc35a0

View file

@ -61,9 +61,9 @@ module Gitlab
subtree = tree_entries_from_rugged(repository, sha, tree.path, false)
if subtree.count == 1 && subtree.first.dir?
return File.join(tree.name, rugged_flatten_tree(repository, sha, subtree.first, root_path))
File.join(tree.name, rugged_flatten_tree(repository, sha, subtree.first, root_path))
else
return tree.name
tree.name
end
end