From 91e04476817a685a0085f52abf72f448965d3e19 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 28 Aug 2024 09:53:06 +0200 Subject: [PATCH] Remove unnecessary braces --- twitchdl/download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitchdl/download.py b/twitchdl/download.py index 71d9f4c..d7a2256 100644 --- a/twitchdl/download.py +++ b/twitchdl/download.py @@ -26,12 +26,12 @@ def _download(url: str, path: str): def download_file(url: str, path: str, retries: int = RETRY_COUNT): if os.path.exists(path): from_disk = True - return (os.path.getsize(path), from_disk) + return os.path.getsize(path), from_disk from_disk = False for _ in range(retries): try: - return (_download(url, path), from_disk) + return _download(url, path), from_disk except httpx.RequestError: pass