From b33bed7a6e68b0f0e45c55ae2a098b42e4857942 Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Sun, 5 Jul 2026 06:44:44 +0000 Subject: [PATCH] fix: remove redundant url.strip() check in download_video not url already catches empty string, making url.strip() == '' the 3rd useless condition. --- youtube_cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_cli/main.py b/youtube_cli/main.py index caa473b..c383d33 100644 --- a/youtube_cli/main.py +++ b/youtube_cli/main.py @@ -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