Merge pull request #30 from Derpy-Leggies/deepsource-autofix-1554309f

refactor: refactor unnecessary `else` / `elif` when `if` block has a `return` statement
This commit is contained in:
Michał 2023-09-27 20:28:21 +01:00 committed by GitHub
commit c8c523987b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,8 +138,7 @@ def handle_errors():
render_template("error.html", error=err.code, msg=err.description),
err.code,
)
else:
return str(err.code) + ": " + err.description, err.code
return str(err.code) + ": " + err.description, err.code
def register_blueprints():