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.

queue_processor: Remove unreachable code.

Zixuan James Licd8510607a10
diff --git a/zerver/worker/queue_processors.py b/zerver/worker/queue_processors.py
index 16752999822..36eb5873f6e 100644
--- a/zerver/worker/queue_processors.py
+++ b/zerver/worker/queue_processors.py
@@ -881,9 +881,6 @@ class FetchLinksEmbedData(QueueProcessingWorker):
if message.content != event["message_content"]:
return
- if message.content is None:
- return
-
# Fetch the realm whose settings we're using for rendering
realm = Realm.objects.get(id=event["message_realm_id"])