Skip to content

Commit 6feb45a

Browse files
committed
remove the ununsed code
1 parent b244d24 commit 6feb45a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

paddlenlp/taskflow/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ def download_file(save_dir, filename, url, md5=None):
4444
md5(string, optional): The md5 value that checking the version downloaded.
4545
"""
4646
logger.disable()
47-
if save_dir is None:
48-
return None
4947
fullname = os.path.join(save_dir, filename)
5048
if os.path.exists(fullname):
5149
if md5 and (not md5file(fullname) == md5):

0 commit comments

Comments
 (0)