Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

actions: Remove redundant "assert is None" in do_update_message_flags.

Mateusz Manderaeda396376cfa
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index 333756e65b6..e322d95461f 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -4177,7 +4177,6 @@ def do_update_message_flags(user_profile: UserProfile,
raise JsonableError(_("Flag not editable: '%s'") % (flag,))
flagattr = getattr(UserMessage.flags, flag)
- assert messages is not None
msgs = UserMessage.objects.filter(user_profile=user_profile,
message__id__in=messages)
# This next block allows you to star any message, even those you