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
Boxiang Sun
gitlab-ce
Commits
8a68f912
Commit
8a68f912
authored
Mar 07, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix return nil Rubocop offenses
parent
9d3e413a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/gitlab/git/rugged_impl/blob.rb
lib/gitlab/git/rugged_impl/blob.rb
+3
-3
No files found.
lib/gitlab/git/rugged_impl/blob.rb
View file @
8a68f912
...
...
@@ -34,7 +34,7 @@ module Gitlab
blob_entry
=
find_entry_by_path
(
repository
,
root_tree
.
oid
,
*
path
.
split
(
'/'
))
return
nil
unless
blob_entry
return
unless
blob_entry
if
blob_entry
[
:type
]
==
:commit
submodule_blob
(
blob_entry
,
path
,
sha
)
...
...
@@ -77,10 +77,10 @@ module Gitlab
entry
[
:name
]
==
path_parts
[
0
]
end
return
nil
unless
entry
return
unless
entry
if
path_parts
.
size
>
1
return
nil
unless
entry
[
:type
]
==
:tree
return
unless
entry
[
:type
]
==
:tree
path_parts
.
shift
find_entry_by_path
(
repository
,
entry
[
:oid
],
*
path_parts
)
...
...
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