diff --git a/lib/bundle/skipper.rb b/lib/bundle/skipper.rb index 04d3bbd1e..3808bf9e3 100644 --- a/lib/bundle/skipper.rb +++ b/lib/bundle/skipper.rb @@ -29,7 +29,7 @@ def skip?(entry, silent: false) # can have spaces in the names (and the `mas` output format changes on # occasion). entry_ids = [entry.name, entry.options[:id]&.to_s].compact - return false if (entry_type_skips & entry_ids).empty? + return false unless entry_type_skips.intersect?(entry_ids) puts Formatter.warning "Skipping #{entry.name}" unless silent true