(PYL-R1705) Unnecessary `else` / `elif` used after `return`
robotichead opened this issue · comments
Description
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 …
Occurrences
There are 2 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/robotichead/NearBeach/issue/PYL-R1705/occurrences/
Sounds simple! I'd like to give this a try