Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
actions: Remove 'topic_name is None' check from can_edit_content_or_topic.
sahil839283a3a5c283b
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.pyindex 518c77faf7d..fb1bc0be54d 100644--- a/zerver/lib/actions.py+++ b/zerver/lib/actions.py@@ -2810,9 +2810,7 @@ def can_edit_content_or_topic(if content is not None:return False- # If no topic change is requested, we're done.- if topic_name is None: # nocoverage- return True+ assert topic_name is not None# The following cases are the various reasons a user might be# allowed to edit topics.