Remove redundant if statement

Looks like there is a duplicate if statement here.