Remove duplicate check of the same if condition.
Remove duplicate check of the same if condition.

The condition of the first check was modified in https://gerrit-review.googlesource.com/c/gerrit/+/340238

Release-Notes: skip
Change-Id: I35f8dadb6f924d62d967e7394c7998d6261d828a

GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit