Remove a redundant clause in an if statement.