Skip to content
Snippets Groups Projects
Verified Commit 0d2bc659 authored by Mark's avatar Mark
Browse files

Refactor explicit return None

parent 0da30b63
No related branches found
No related tags found
1 merge request!3Change login provider backend to graphql
...@@ -20,7 +20,7 @@ login_manager.login_view = "login" ...@@ -20,7 +20,7 @@ login_manager.login_view = "login"
def user_loader(username): def user_loader(username):
user = User(username) user = User(username)
if not user.active: if not user.active:
return return None
return user return user
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment