mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
Simplify conditional
This commit is contained in:
parent
2f9489fe39
commit
39222cf868
@ -76,7 +76,7 @@ def sanitize_email(email_address: str, not_lower=False) -> str:
|
||||
|
||||
|
||||
def sanitize_next_url(url: Optional[str]) -> Optional[str]:
|
||||
if url is None or len(url) == 0:
|
||||
if not url:
|
||||
return None
|
||||
if url[0] != "/":
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user