avoid nil error

This commit is contained in:
hyuraku 2022-06-06 21:03:39 +09:00
parent 8b14738a88
commit 7e31574c3f

View File

@ -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