mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +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
1 changed files with 1 additions and 2 deletions
|
@ -138,7 +138,6 @@ def handle_errors():
|
|||
render_template("error.html", error=err.code, msg=err.description),
|
||||
err.code,
|
||||
)
|
||||
else:
|
||||
return str(err.code) + ": " + err.description, err.code
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue