Skip to content

Commit d0f08d3

Browse files
committed
only remove the entries for the current team
1 parent 90741f6 commit d0f08d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/code_ownership/private/ownership_mappers/team_globs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def find_overlapping_globs
7272
# Remove anything that is unowned
7373
TeamPlugins::Ownership.for(team).unowned_globs.each do |glob|
7474
Dir.glob(glob).each do |filename|
75-
T.must(mapped_files.delete(filename))
75+
mapped_files.reject! { |key, value| key == filename && value.any? { |context| context.team == team } }
7676
end
7777
end
7878
end

0 commit comments

Comments
 (0)