python-gallery/onlylegs
deepsource-autofix[bot] 55c5fc482c
refactor: refactor unnecessary else / elif when if block has a return statement
The use of `else` or `elif` becomes redundant and can be dropped if the last statement under the leading `if` / `elif` block is a `return` statement.
In the case of an `elif` after `return`, it can be written as a separate `if` block.
For `else` blocks after `return`, the statements can be shifted out of `else`. Please refer to the examples below for reference.

Refactoring the code this way can improve code-readability and make it easier to maintain.
2023-09-27 18:20:34 +00:00
..
static Allow for styling 2023-09-27 13:59:31 +01:00
templates Allow for styling 2023-09-27 13:59:31 +01:00
utils Merge pull request #29 from Derpy-Leggies/unstable 2023-09-27 14:00:31 +01:00
views Allow for styling 2023-09-27 13:59:31 +01:00
api.py Functional settings menu plus sass stuff apparently? 2023-09-27 11:32:39 +01:00
app.py refactor: refactor unnecessary else / elif when if block has a return statement 2023-09-27 18:20:34 +00:00
auth.py Functional settings menu plus sass stuff apparently? 2023-09-27 11:32:39 +01:00
config.py Allow for styling 2023-09-27 13:59:31 +01:00
extensions.py 🦞 2023-08-04 17:34:08 +00:00
filters.py Functional settings menu plus sass stuff apparently? 2023-09-27 11:32:39 +01:00
models.py Move colours to HSL, probably a mistake 2023-09-26 19:36:49 +01:00