Remove the identical if branch (#18019)
Summary:
elif branch and else branch have the same content.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18019
Differential Revision: D14475107
Pulled By: ezyang
fbshipit-source-id: 5075cc938f57649af7537de1a7c9d76ea976cafc