Skip to content

Return early from CodeOwners::File#normalize_pattern

What does this MR do and why?

CodeOwners::File#normalize_pattern previously performed some logic to unescape whitespace and escaped # characters, before checking if the parameter equaled * and returning.

I've refactored so we return as early as possible without wasting effort.

Merge request reports

Loading