removed unnecessary if statement / redundant code

The logic is the same on both sides of this IF statement, it should be removed.