Commit 46c8cc35 authored by Stan Hu's avatar Stan Hu

Remove unnecessary return statements in tree.rb

parent 28883d8e
......@@ -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
......
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