diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-09-03 11:42:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 11:42:45 +0100 |
commit | 2a447826665a5ac8e12736214f0ef2401e72f1f9 (patch) | |
tree | ee18930dd9db500a09ad8901ac67ebe4a38c233d /synapse/storage | |
parent | Opentrace device lists (#5853) (diff) | |
download | synapse-2a447826665a5ac8e12736214f0ef2401e72f1f9.tar.xz |
Remove double return statements (#5962)
Remove all the "double return" statements which were a result of us removing all the instances of ``` defer.returnValue(...) return ``` statements when we switched to python3 fully.
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/appservice.py | 1 | ||||
-rw-r--r-- | synapse/storage/directory.py | 2 | ||||
-rw-r--r-- | synapse/storage/profile.py | 1 |
3 files changed, 0 insertions, 4 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py index 36657753cd..435b2acd4d 100644 --- a/synapse/storage/appservice.py +++ b/synapse/storage/appservice.py @@ -165,7 +165,6 @@ class ApplicationServiceTransactionWorkerStore( ) if result: return result.get("state") - return return None def set_appservice_state(self, service, state): diff --git a/synapse/storage/directory.py b/synapse/storage/directory.py index e966a73f3d..eed7757ed5 100644 --- a/synapse/storage/directory.py +++ b/synapse/storage/directory.py @@ -47,7 +47,6 @@ class DirectoryWorkerStore(SQLBaseStore): if not room_id: return None - return servers = yield self._simple_select_onecol( "room_alias_servers", @@ -58,7 +57,6 @@ class DirectoryWorkerStore(SQLBaseStore): if not servers: return None - return return RoomAliasMapping(room_id, room_alias.to_string(), servers) diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py index 8a5d8e9b18..912c1df6be 100644 --- a/synapse/storage/profile.py +++ b/synapse/storage/profile.py @@ -35,7 +35,6 @@ class ProfileWorkerStore(SQLBaseStore): if e.code == 404: # no match return ProfileInfo(None, None) - return else: raise |