lib/code_ownership/private.rb in code_ownership-1.37.0 vs lib/code_ownership/private.rb in code_ownership-1.38.0

- old
+ new

@@ -97,9 +97,10 @@ end in_unowned_globs = configuration.unowned_globs.any? do |unowned_glob| File.fnmatch?(unowned_glob, file, File::FNM_PATHNAME | File::FNM_EXTGLOB) end + in_owned_globs && !in_unowned_globs && File.exist?(file) end sig { params(team_name: String, location_of_reference: String).returns(CodeTeams::Team) } def self.find_team!(team_name, location_of_reference)