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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
64bbef0f
Commit
64bbef0f
authored
Dec 28, 2020
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove nil code-owners-section condition
parent
7d2741f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
ee/lib/gitlab/code_owners/file.rb
ee/lib/gitlab/code_owners/file.rb
+2
-6
No files found.
ee/lib/gitlab/code_owners/file.rb
View file @
64bbef0f
...
...
@@ -97,16 +97,12 @@ module Gitlab
section_headers
.
find
{
|
k
|
k
.
casecmp?
(
section
)
}
||
section
end
def
extract_entry_and_populate_parsed_data
(
line
,
parsed
,
section
=
nil
)
def
extract_entry_and_populate_parsed_data
(
line
,
parsed
,
section
)
pattern
,
_separator
,
owners
=
line
.
partition
(
/(?<!\\)\s+/
)
normalized_pattern
=
normalize_pattern
(
pattern
)
if
section
parsed
[
section
][
normalized_pattern
]
=
Entry
.
new
(
pattern
,
owners
,
section
)
else
parsed
[
normalized_pattern
]
=
Entry
.
new
(
pattern
,
owners
)
end
parsed
[
section
][
normalized_pattern
]
=
Entry
.
new
(
pattern
,
owners
,
section
)
end
def
skip?
(
line
)
...
...
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