lib/rubocop/cop/layout/end_alignment.rb in rubocop-0.59.2 vs lib/rubocop/cop/layout/end_alignment.rb in rubocop-0.60.0

- old
+ new

@@ -111,10 +111,10 @@ def check_assignment(node, rhs) # If there are method calls chained to the right hand side of the # assignment, we let rhs be the receiver of those method calls before # we check if it's an if/unless/while/until. return unless (rhs = first_part_of_call_chain(rhs)) - return unless CONDITIONAL_NODES.include?(rhs.type) + return unless rhs.conditional? return if rhs.if_type? && rhs.ternary? check_asgn_alignment(node, rhs) end