class RuboCop::Cop::Style::ConditionalAssignment
def allowed_statements?(branches)
def allowed_statements?(branches) return false unless branches.all? statements = branches.map { |branch| tail(branch) }.compact lhs_all_match?(statements) && statements.none?(&:masgn_type?) && assignment_types_match?(*statements) end