mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
push_notifications: Remove an unnecessary else clause.
This makes the code a bit cleaner.
This commit is contained in:
@@ -501,10 +501,10 @@ def get_mobile_push_content(rendered_content: str) -> str:
|
|||||||
|
|
||||||
if settings.PUSH_NOTIFICATION_REDACT_CONTENT:
|
if settings.PUSH_NOTIFICATION_REDACT_CONTENT:
|
||||||
return "***REDACTED***"
|
return "***REDACTED***"
|
||||||
else:
|
|
||||||
elem = LH.fromstring(rendered_content)
|
elem = LH.fromstring(rendered_content)
|
||||||
plain_text = process(elem)
|
plain_text = process(elem)
|
||||||
return plain_text
|
return plain_text
|
||||||
|
|
||||||
def truncate_content(content: str) -> Tuple[str, bool]:
|
def truncate_content(content: str) -> Tuple[str, bool]:
|
||||||
# We use unicode character 'HORIZONTAL ELLIPSIS' (U+2026) instead
|
# We use unicode character 'HORIZONTAL ELLIPSIS' (U+2026) instead
|
||||||
|
|||||||
Reference in New Issue
Block a user