pywonderland icon indicating copy to clipboard operation
pywonderland copied to clipboard

(PYL-R1723) Unnecessary `else` / `elif` used after `break`

Open mayankgoyal-13 opened this issue 3 years ago • 0 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 break statement. In the case of an elif after break, it can be written as a separate if block. For else blocks after break, the …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/neozhaoliang/pywonderland/issue/PYL-R1723/occurrences/

mayankgoyal-13 avatar Oct 01 '21 09:10 mayankgoyal-13