REFACTOR: removes useless conditional (PR #9677)

GitHub