lib/rubocop/cop/lint/useless_setter_call.rb in rubocop-0.29.0 vs lib/rubocop/cop/lint/useless_setter_call.rb in rubocop-0.29.1
- old
+ new
@@ -78,10 +78,10 @@
process_logical_operator_assignment(node)
when :op_asgn
process_binary_operator_assignment(node)
when *ASSIGNMENT_TYPES
_, rhs_node = *node
- process_assignment(node, rhs_node)
+ process_assignment(node, rhs_node) if rhs_node
end
end
@local[variable_name]
end