Remove assignment in condition