- if details[:nodes_deny]
- hosts_deny[name] |= search(:node, details[:nodes_deny]).collect do |n|
- n.ipaddresses(:role => :external)
- end.flatten
- end
+ next unless details[:nodes_deny]
+
+ hosts_deny[name] |= search(:node, details[:nodes_deny]).collect do |n|
+ n.ipaddresses(:role => :external)
+ end.flatten