mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-29 01:28:24 +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),
|
||||
err.code,
|
||||
)
|
||||
else:
|
||||
return str(err.code) + ": " + err.description, err.code
|
||||
return str(err.code) + ": " + err.description, err.code
|
||||
|
||||
|
||||
def register_blueprints():
|
||||
|
|
Loading…
Reference in a new issue