summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-17 16:13:14 +0100
committerErik Johnston <erik@matrix.org>2015-04-17 16:13:14 +0100
commite3417bbbe0d40d17eec9f07981359d081c9b1f9d (patch)
tree730a8f0e3ced926a369bcd391543d3f38b76092a /synapse/storage
parentMerge branch 'develop' of github.com:matrix-org/synapse into postgres (diff)
downloadsynapse-e3417bbbe0d40d17eec9f07981359d081c9b1f9d.tar.xz
Revert needless change to storage.profile
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/profile.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py
index 047698aa13..a6e52cb248 100644
--- a/synapse/storage/profile.py
+++ b/synapse/storage/profile.py
@@ -13,8 +13,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from twisted.internet import defer
-
 from ._base import SQLBaseStore
 
 
@@ -26,17 +24,14 @@ class ProfileStore(SQLBaseStore):
             desc="create_profile",
         )
 
-    @defer.inlineCallbacks
     def get_profile_displayname(self, user_localpart):
-        name = yield self._simple_select_one_onecol(
+        return self._simple_select_one_onecol(
             table="profiles",
             keyvalues={"user_id": user_localpart},
             retcol="displayname",
             desc="get_profile_displayname",
         )
 
-        defer.returnValue(name)
-
     def set_profile_displayname(self, user_localpart, new_displayname):
         return self._simple_update_one(
             table="profiles",