class RuboCop::Cop::Style::RedundantSelfAssignmentBranch

def self_assign?(variable, branch)

def self_assign?(variable, branch)
  variable.to_s == branch&.source
end