mirror of https://github.com/pypa/pip
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:
parent
a72d04f734
commit
ec5b6d7b80
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue