nearbeach / NearBeach

NearBeach is an open sourced project management tool, helping you keep track of your project. You can track requirements, projects and tasks

Home Page:https://nearbeach.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(PYL-R1705) Unnecessary `else` / `elif` used after `return`

robotichead opened this issue · comments

commented

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