Don't use redundant inlineCallbacks
This commit is contained in:
parent
87c864b698
commit
cd087a265d
|
@ -48,9 +48,8 @@ class GroupServerStore(SQLBaseStore):
|
||||||
desc="set_group_join_policy",
|
desc="set_group_join_policy",
|
||||||
)
|
)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
|
||||||
def get_group(self, group_id):
|
def get_group(self, group_id):
|
||||||
ret = yield self._simple_select_one(
|
return self._simple_select_one(
|
||||||
table="groups",
|
table="groups",
|
||||||
keyvalues={
|
keyvalues={
|
||||||
"group_id": group_id,
|
"group_id": group_id,
|
||||||
|
@ -63,8 +62,6 @@ class GroupServerStore(SQLBaseStore):
|
||||||
desc="get_group",
|
desc="get_group",
|
||||||
)
|
)
|
||||||
|
|
||||||
defer.returnValue(ret)
|
|
||||||
|
|
||||||
def get_users_in_group(self, group_id, include_private=False):
|
def get_users_in_group(self, group_id, include_private=False):
|
||||||
# TODO: Pagination
|
# TODO: Pagination
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue