Remove unused local variables

This commit is contained in:
Serene-Arc committed 2021-07-02 14:58:56 +10:00
1 parent 6efcf1ce7e
commit aa55a92791
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -43,7 +43,6 @@ class Youtube(BaseDownloader):
except youtube_dl.DownloadError as e:
raise SiteDownloaderError(f'Youtube download failed: {e}')
downloaded_file = None
downloaded_files = list(download_path.iterdir())
if len(downloaded_files) > 0:
downloaded_file = downloaded_files[0]