summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/rugged_impl/tree.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git/rugged_impl/tree.rb b/lib/gitlab/git/rugged_impl/tree.rb
index f6ddc4e4346..0ebfd496695 100644
--- a/lib/gitlab/git/rugged_impl/tree.rb
+++ b/lib/gitlab/git/rugged_impl/tree.rb
@@ -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