Skip to content

Commit 0441871

Browse files
committed
fix some problem
Signed-off-by: jerome_Hsieh <[email protected]>
1 parent 9d3c395 commit 0441871

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

monai/apps/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,5 @@ def download_and_extract(
339339
filename = filepath
340340
else:
341341
filename = Path(tmp_dir, _basename(url)).resolve()
342-
filename = filepath if filepath else Path(tmp_dir, _basename(url)).resolve()
343342
download_url(url=url, filepath=filename, hash_val=hash_val, hash_type=hash_type, progress=progress)
344-
extractall(filepath=filename, output_dir=output_dir, file_type=file_type, has_base=has_base)
343+
extractall(filepath=filename, output_dir=output_dir, file_type=file_type, has_base=has_base)

0 commit comments

Comments
 (0)