lib/rubocop/cop/style/redundant_assignment.rb in rubocop-1.12.1 vs lib/rubocop/cop/style/redundant_assignment.rb in rubocop-1.13.0
- old
+ new
@@ -79,12 +79,10 @@
check_branch(node.if_branch)
check_branch(node.else_branch)
end
def check_rescue_node(node)
- node.child_nodes.each do |child_node|
- check_branch(child_node)
- end
+ node.child_nodes.each { |child_node| check_branch(child_node) }
end
def check_ensure_node(node)
check_branch(node.body)
end