Commit 64bbef0f authored by Igor Drozdov's avatar Igor Drozdov

Remove nil code-owners-section condition

parent 7d2741f9
......@@ -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)
......
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