From 5d1a840e107765a4d3917299a41606d1e04c4614 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 18 Jan 2024 22:49:06 +0000 Subject: [PATCH] Fix RuboCop `Style/ArrayIntersect` offenses --- lib/bundle/skipper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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