mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
move guard out of is_threepid_reserved and into register.py
This commit is contained in:
parent
d619b113ed
commit
c99c2d58d7
3 changed files with 6 additions and 7 deletions
|
@ -429,8 +429,6 @@ def is_threepid_reserved(reserved_threepids, threepid):
|
|||
Returns:
|
||||
boolean Is the threepid undertest reserved_user
|
||||
"""
|
||||
if not threepid:
|
||||
return False
|
||||
|
||||
for tp in reserved_threepids:
|
||||
if (threepid['medium'] == tp['medium'] and threepid['address'] == tp['address']):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue