avoid nil error
This commit is contained in:
parent
8b14738a88
commit
7e31574c3f
@ -199,7 +199,7 @@ module Utils
|
|||||||
return false if install_node.blank?
|
return false if install_node.blank?
|
||||||
|
|
||||||
install_node.each_node.any? do |node|
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user