Code cleanup: Remove unnecessary if-else statement.

I stumble on this piece of code, the condition do not seems to be very important, since its doing exactly the same thing in the if/else.