mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-02-13 17:00:05 +00:00
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:
commit
c8c523987b
|
@ -138,8 +138,7 @@ def handle_errors():
|
||||||
render_template("error.html", error=err.code, msg=err.description),
|
render_template("error.html", error=err.code, msg=err.description),
|
||||||
err.code,
|
err.code,
|
||||||
)
|
)
|
||||||
else:
|
return str(err.code) + ": " + err.description, err.code
|
||||||
return str(err.code) + ": " + err.description, err.code
|
|
||||||
|
|
||||||
|
|
||||||
def register_blueprints():
|
def register_blueprints():
|
||||||
|
|
Loading…
Reference in a new issue