Commit 3eeafcdf authored by Kerri Miller's avatar Kerri Miller

Merge branch 'id-remove-nil-section-condition' into 'master'

Remove nil code-owners-section condition

See merge request gitlab-org/gitlab!50631
parents 82d53b45 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
end
def skip?(line)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment