summary refs log tree commit diff
path: root/synapse/storage/profile.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-19 15:11:59 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-19 15:11:59 +0000
commitf590f77a163e182626b79cb4f6d551409b1f9b9b (patch)
tree65fc34b3e50745d8bb964dc4512f3ddb17c0c061 /synapse/storage/profile.py
parentOpentracing Utils (#5722) (diff)
parentReplace returnValue with return (#5736) (diff)
downloadsynapse-f590f77a163e182626b79cb4f6d551409b1f9b9b.tar.xz
Replace returnValue with return (#5736)
Diffstat (limited to 'synapse/storage/profile.py')
-rw-r--r--synapse/storage/profile.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py

index 9bffd27d9a..96a7e32fca 100644 --- a/synapse/storage/profile.py +++ b/synapse/storage/profile.py
@@ -38,15 +38,13 @@ class ProfileWorkerStore(SQLBaseStore): except StoreError as e: if e.code == 404: # no match - defer.returnValue(ProfileInfo(None, None)) + return ProfileInfo(None, None) return else: raise - defer.returnValue( - ProfileInfo( - avatar_url=profile["avatar_url"], display_name=profile["displayname"] - ) + return ProfileInfo( + avatar_url=profile["avatar_url"], display_name=profile["displayname"] ) def get_profile_displayname(self, user_localpart): @@ -244,7 +242,7 @@ class ProfileStore(ProfileWorkerStore, background_updates.BackgroundUpdateStore) ) if res: - defer.returnValue(True) + return True res = yield self._simple_select_one_onecol( table="group_invites", @@ -255,4 +253,4 @@ class ProfileStore(ProfileWorkerStore, background_updates.BackgroundUpdateStore) ) if res: - defer.returnValue(True) + return True