class RuboCop::Cop::Style::SelfAssignment

def check(node, var_type)

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