Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
46c8cc35
Commit
46c8cc35
authored
Mar 07, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary return statements in tree.rb
parent
28883d8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/git/rugged_impl/tree.rb
lib/gitlab/git/rugged_impl/tree.rb
+2
-2
No files found.
lib/gitlab/git/rugged_impl/tree.rb
View file @
46c8cc35
...
@@ -61,9 +61,9 @@ module Gitlab
...
@@ -61,9 +61,9 @@ module Gitlab
subtree
=
tree_entries_from_rugged
(
repository
,
sha
,
tree
.
path
,
false
)
subtree
=
tree_entries_from_rugged
(
repository
,
sha
,
tree
.
path
,
false
)
if
subtree
.
count
==
1
&&
subtree
.
first
.
dir?
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
else
return
tree
.
name
tree
.
name
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment