Skip to content
Snippets Groups Projects
Unverified Commit 64fa9287 authored by Brendan Abolivier's avatar Brendan Abolivier
Browse files

Simplify condition

parent 0a2f5226
No related branches found
No related tags found
No related merge requests found
......@@ -587,14 +587,14 @@ class SyncHandler(object):
# for the "name" value and default to an empty string.
if name_id:
name = yield self.store.get_event(name_id, allow_none=True)
if name and name.content.get("name", ""):
if name and name.content.get("name"):
defer.returnValue(summary)
if canonical_alias_id:
canonical_alias = yield self.store.get_event(
canonical_alias_id, allow_none=True,
)
if canonical_alias and canonical_alias.content.get("alias", ""):
if canonical_alias and canonical_alias.content.get("alias"):
defer.returnValue(summary)
joined_user_ids = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment