REFACTOR: removes useless conditional (PR #9674)

We already check if there’s a post in the line before.

GitHub