[minor] Removed unnecessary if/else