fix: remove redundant url.strip() check in download_video

not url already catches empty string, making url.strip() == ''
the 3rd useless condition.
This commit is contained in:
Jarian Cottingham 2026-07-05 06:44:44 +00:00
parent bbfd646f8b
commit b33bed7a6e

View File

@ -754,7 +754,7 @@ class YouTubeCLI:
"""Download a video using yt-dlp with progress bar."""
# Validate URL before proceeding
if not url or not isinstance(url, str) or url.strip() == "":
if not url or not isinstance(url, str):
logger.error("Invalid or empty video URL provided.")
return False