Remove useless if branch.