mirror of https://github.com/pypa/pip
Use early-return style in unpack_url
This will make it easier to move directory handling up to unpack_url.
This commit is contained in:
parent
b8c0d0175d
commit
062ccf9dba
|
@ -274,7 +274,7 @@ def unpack_url(
|
|||
return None
|
||||
|
||||
# file urls
|
||||
elif link.is_file:
|
||||
if link.is_file:
|
||||
return unpack_file_url(link, location, download_dir, hashes=hashes)
|
||||
|
||||
# http urls
|
||||
|
|
Loading…
Reference in New Issue