lib/rubocop/cop/style/and_or.rb in rubocop-0.46.0 vs lib/rubocop/cop/style/and_or.rb in rubocop-0.47.0
- old
+ new
@@ -42,10 +42,10 @@
private
def on_conditionals(node)
condition_node, = *node
- condition_node.each_node(:and, :or) do |logical_node|
+ condition_node.each_node(*LOGICAL_OPERATOR_NODES) do |logical_node|
process_logical_op(logical_node)
end
end
def process_logical_op(node)