mirror of
https://github.com/element-hq/synapse
synced 2024-10-06 14:42:39 +00:00
Use tuple unpacking
This commit is contained in:
parent
270e1c904a
commit
25f03cf8e9
1 changed files with 2 additions and 2 deletions
|
@ -236,10 +236,10 @@ class RulesForRoom(object):
|
||||||
# Loop through to see which member events we've seen and have rules
|
# Loop through to see which member events we've seen and have rules
|
||||||
# for and which we need to fetch
|
# for and which we need to fetch
|
||||||
for key in current_state_ids:
|
for key in current_state_ids:
|
||||||
if key[0] != EventTypes.Member:
|
typ, user_id = key
|
||||||
|
if typ != EventTypes.Member:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
user_id = key[1]
|
|
||||||
if user_id in self.uninteresting_user_set:
|
if user_id in self.uninteresting_user_set:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue