diff --git a/Library/Homebrew/rubocops/lines.rb b/Library/Homebrew/rubocops/lines.rb index 5fc7258015..552225fb5b 100644 --- a/Library/Homebrew/rubocops/lines.rb +++ b/Library/Homebrew/rubocops/lines.rb @@ -173,7 +173,8 @@ module RuboCop # Finds `depends_on "foo" if build.with?("bar")` or `depends_on "foo" if build.without?("bar")` def_node_search :depends_on_build_with, <<~EOS - (if $(send (send nil? :build) {:with? :without?} str) (send nil? :depends_on str) nil?) + (if $(send (send nil? :build) {:with? :without?} str) + (send nil? :depends_on str) nil?) EOS end