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:
Chris Hunt 2020-02-04 21:31:59 -05:00
parent b8c0d0175d
commit 062ccf9dba
1 changed files with 1 additions and 1 deletions

View File

@ -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