Commit 0a50ba69 authored by Kerri Miller's avatar Kerri Miller

Extact FF check into private method for reuse

parent c9d7d0be
......@@ -43,7 +43,7 @@ module Gitlab
end
def get_parsed_data
if Feature.enabled?(:sectional_codeowners, @project, default_enabled: false)
if sectional_codeowners?
return get_parsed_sectional_data
end
......@@ -140,6 +140,10 @@ module Gitlab
::File.fnmatch?(pattern, path, flags)
end
def sectional_codeowners?
Feature.enabled?(:sectional_codeowners, @project, default_enabled: false)
end
end
end
end
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