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

- old
+ new

@@ -90,10 +90,10 @@ # Using `File.fnmatch?` is a lot faster! in_owned_globs = configuration.owned_globs.all? do |owned_glob| File.fnmatch?(owned_glob, file, File::FNM_PATHNAME | File::FNM_EXTGLOB) end - in_unowned_globs = configuration.unowned_globs.all? do |unowned_glob| + 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 end