summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-06-01 13:11:38 +0100
committerErik Johnston <erik@matrix.org>2017-06-01 13:11:38 +0100
commit7233341eac0ad0a25dacf913d4a54d25994ea185 (patch)
tree19b8f8fd3c6b2db7ed9097c982d31203336ee198
parentCheck if host is still in room (diff)
downloadsynapse-7233341eac0ad0a25dacf913d4a54d25994ea185.tar.xz
Comments
-rw-r--r--synapse/handlers/user_directory.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index 83715e5ffe..a8525fc86a 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -346,7 +346,7 @@ class UserDirectoyHandler(object):
 
         Returns:
             None if the field in the events either both match `public_value`
-            neither do, i.e. there has been no change.
+            or if neither do, i.e. there has been no change.
             True if it didnt match `public_value` but now does
             False if it did match `public_value` but now doesn't
         """
@@ -366,10 +366,10 @@ class UserDirectoyHandler(object):
         value = None
 
         if prev_event:
-            prev_value = prev_event.content.get(key_name, None)
+            prev_value = prev_event.content.get(key_name)
 
         if event:
-            value = event.content.get(key_name, None)
+            value = event.content.get(key_name)
 
         logger.debug("prev_value: %r -> value: %r", prev_value, value)