lib/rubocop/cop/layout/end_alignment.rb in rubocop-0.87.1 vs lib/rubocop/cop/layout/end_alignment.rb in rubocop-0.88.0

- old
+ new

@@ -148,12 +148,13 @@ } check_end_kw_alignment(node, align_with) end def alignment_node(node) - if style == :keyword + case style + when :keyword node - elsif style == :variable + when :variable alignment_node_for_variable_style(node) else start_line_range(node) end end