Skip to content

Commit a1af13c

Browse files
committed
Tweak a condition
1 parent 0e2a0db commit a1af13c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/pip/_internal/operations/prepare.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,10 @@ def _prepare_linked_requirement(
553553

554554
hashes = self._get_linked_req_hashes(req)
555555

556-
if (
557-
hashes
558-
and link.is_wheel
559-
and link.is_file
560-
and req.original_link_is_in_wheel_cache
561-
):
556+
if hashes and req.original_link_is_in_wheel_cache:
562557
assert req.download_info is not None
558+
assert link.is_wheel
559+
assert link.is_file
563560
# We need to verify hashes, and we have found the requirement in the cache
564561
# of locally built wheels.
565562
if (

0 commit comments

Comments
 (0)