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

GitHub