[minor] Removed unnecessary if/else

@phillro: Is this good to merge?