Appease RuboCop

This commit is contained in:
Issy Long 2024-01-14 20:55:22 +00:00
parent 9070f6d829
commit 6a1cb62b42
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -11,7 +11,7 @@ module RuboCop
return unless [:zap, :uninstall].include?(name = node.method_name)
node.each_descendant(:pair).each do |pair|
symbols = pair.children.select { |child| child.sym_type? }.map(&:value)
symbols = pair.children.select(&:sym_type?).map(&:value)
# For `zap`s, we only care about `trash` arrays.
next if name == :zap && !symbols.include?(:trash)
# Don't order `uninstall` arrays that contain commands.