Avoid duplicate test

No need for the if statement, since the test is already done with the
when statement.