lib/code_ownership/private.rb in code_ownership-1.32.13 vs lib/code_ownership/private.rb in code_ownership-1.32.14

- old
+ new

@@ -94,10 +94,10 @@ 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 + 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) found_team = CodeTeams.find(team_name)