Remove extra metadata consistency check

Instead of an early return, we fall through to the existing check at the
end of this function. This aligns our treatment of `_fetch_metadata` and
`_prepare_distribution`.
This commit is contained in:
Chris Hunt 2020-08-02 11:38:34 -04:00
parent a72d04f734
commit ec5b6d7b80
1 changed files with 2 additions and 5 deletions

View File

@ -219,12 +219,9 @@ class _InstallRequirementBackedCandidate(Candidate):
if self._dist is not None:
return
dist = self._fetch_metadata()
if dist is not None:
self._check_metadata_consistency(dist)
self._dist = dist
return
try:
dist = self._prepare_distribution()
if dist is None:
dist = self._prepare_distribution()
except HashError as e:
e.req = self._ireq
raise