REFACTOR: removes useless assignment to local variable (PR #9675)

GitHub