From 1f32365c84cc7dcefd511f7f92a8024225aeb257 Mon Sep 17 00:00:00 2001 From: Philipp Rintz <13933258+p-rintz@users.noreply.github.com> Date: Mon, 18 Jul 2022 20:29:59 +0200 Subject: [PATCH] Fix linter errors --- src/ytdl_sub/validators/url_validator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ytdl_sub/validators/url_validator.py b/src/ytdl_sub/validators/url_validator.py index e6507086..a5998763 100644 --- a/src/ytdl_sub/validators/url_validator.py +++ b/src/ytdl_sub/validators/url_validator.py @@ -132,8 +132,9 @@ class YoutubeChannelUrlValidator(StringValidator): if len(query_path_split) < 3 or len(query_path_split[2]) == 0: return None return f"https://youtube.com{query.path}" - elif len(query_path_split) == 2 and len(query_path_split[1]) > 0: - # For channels that do not feature a 'c' or 'channel', ensure length of channel string is at least one + if len(query_path_split) == 2 and len(query_path_split[1]) > 0: + # For channels that do not feature a 'c' or 'channel' + # Ensure length of channel string is at least one return f"https://youtube.com{query.path}" return None