Remove useless if condition.