mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
push_notifications: Remove an unnecessary else clause.
This makes the code a bit cleaner.
This commit is contained in:
@@ -501,7 +501,7 @@ def get_mobile_push_content(rendered_content: str) -> str:
|
||||
|
||||
if settings.PUSH_NOTIFICATION_REDACT_CONTENT:
|
||||
return "***REDACTED***"
|
||||
else:
|
||||
|
||||
elem = LH.fromstring(rendered_content)
|
||||
plain_text = process(elem)
|
||||
return plain_text
|
||||
|
||||
Reference in New Issue
Block a user