diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-06-06 10:34:12 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-06-06 10:34:12 +0100 |
commit | 64fa9287920fd391090a607a9bfd3da5415aee16 (patch) | |
tree | 243c0adae63ffb63ee0bee823fc4a8c6475293e8 /synapse/handlers | |
parent | Simplify condition (diff) | |
download | synapse-64fa9287920fd391090a607a9bfd3da5415aee16.tar.xz |
Simplify condition
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 78318aacd8..b878ce11dc 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -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 = [ |