class RuboCop::Cop::Style::SelfAssignment

def check(node, var_type)

def check(node, var_type)
  var_name, rhs = *node
  return unless rhs
  if rhs.send_type?
    check_send_node(node, rhs, var_name, var_type)
  elsif %i[and or].include?(rhs.type)
    check_boolean_node(node, rhs, var_name, var_type)
  end
end