From 7e31574c3f23fdb2c27ab5d7d552e49792d0bddb Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Mon, 6 Jun 2022 21:03:39 +0900 Subject: [PATCH] avoid nil error --- Library/Homebrew/utils/ast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/ast.rb b/Library/Homebrew/utils/ast.rb index 679c08f7a6..8132023aef 100644 --- a/Library/Homebrew/utils/ast.rb +++ b/Library/Homebrew/utils/ast.rb @@ -199,7 +199,7 @@ module Utils return false if install_node.blank? install_node.each_node.any? do |node| - node.send_type? && node.receiver.const_name == "ENV" && node.method_name == :runtime_cpu_detection + node.send_type? && node.receiver&.const_name == "ENV" && node.method_name == :runtime_cpu_detection end end