REFACTOR: removes useless self assignment (PR #9681)

GitHub