Remove unnecessary return statements in tree.rb
This commit is contained in:
parent
28883d8e44
commit
46c8cc35a0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue