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`.
@@ -219,11 +219,8 @@ 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:
+ if dist is None:
dist = self._prepare_distribution()
except HashError as e:
e.req = self._ireq
