mirror of https://github.com/pypa/pip
Remove unnecessary check for _dist
Since `_prepare` now internally validates that `_dist` isn't set, we don't need to.
This commit is contained in:
parent
7289625734
commit
7a5e043776
|
@ -248,8 +248,7 @@ class _InstallRequirementBackedCandidate(Candidate):
|
|||
dist = dist_from_wheel_url(self._name, url, session)
|
||||
self._check_metadata_consistency(dist)
|
||||
self._dist = dist
|
||||
if self._dist is None:
|
||||
self._prepare()
|
||||
self._prepare()
|
||||
|
||||
@property
|
||||
def dist(self):
|
||||
|
|
Loading…
Reference in New Issue