Skip to content

Commit 76dddcf

Browse files
committed
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: python/cpython#123766 Signed-off-by: Mike Fiedler <[email protected]>
1 parent 9422a8f commit 76dddcf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

warehouse/rss/views.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ def _format_author(release):
4040
return None
4141
author_emails.append(author_email)
4242

43-
if not author_emails:
44-
return None
4543
return ", ".join(author_emails)
4644

4745

0 commit comments

Comments
 (0)