From 76dddcfb18dc26af4fab8aca88e0628b1323f561 Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Thu, 12 Sep 2024 16:37:21 -0400 Subject: [PATCH] chore: remove unreachable condition Now that Python validates the addresses more strictly, we won't hit the condition any longer. If we wish to preserve this condition, we could also pass `strict=False` to `getaddresses()`, but that seems to be counter to our desire of having a valid email address. Refs: https://github.com/python/cpython/pull/123766 Signed-off-by: Mike Fiedler --- warehouse/rss/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/warehouse/rss/views.py b/warehouse/rss/views.py index cec983b8b0ce..e0e3ae53938f 100644 --- a/warehouse/rss/views.py +++ b/warehouse/rss/views.py @@ -40,8 +40,6 @@ def _format_author(release): return None author_emails.append(author_email) - if not author_emails: - return None return ", ".join(author_emails)