lib/rubocop/cop/layout/end_alignment.rb in rubocop-0.57.2 vs lib/rubocop/cop/layout/end_alignment.rb in rubocop-0.58.0

- old
+ new

@@ -160,10 +160,10 @@ end def alignment_node_for_variable_style(node) return node.parent if node.case_type? && node.argument? - assignment = node.ancestors.find(&:assignment?) + assignment = node.ancestors.find(&:assignment_or_similar?) if assignment && !line_break_before_keyword?(assignment.source_range, node) assignment else # Fall back to 'keyword' style if this node is not on the RHS of an