From 55246d720e9e8408c76741bb5c104f3df0aff789 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Sun, 12 Jul 2020 14:20:05 -0400 Subject: [PATCH] improve style in pattern matcher --- Library/Homebrew/rubocops/lines.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/rubocops/lines.rb b/Library/Homebrew/rubocops/lines.rb index 5fc725801..552225fb5 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