mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-03-02 02:39:17 -05:00
Remove redundant if-guard
The startswith("@") does the job
This commit is contained in:
parent
559c51debc
commit
9dba813234
@ -521,7 +521,6 @@ class Auth(object):
|
|||||||
|
|
||||||
# Check state_key
|
# Check state_key
|
||||||
if hasattr(event, "state_key"):
|
if hasattr(event, "state_key"):
|
||||||
if not event.state_key.startswith("_"):
|
|
||||||
if event.state_key.startswith("@"):
|
if event.state_key.startswith("@"):
|
||||||
if event.state_key != event.user_id:
|
if event.state_key != event.user_id:
|
||||||
raise AuthError(
|
raise AuthError(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user