argo0n / NograBot

Discord.py bot written by Argon#0002
GNU General Public License v3.0
2 stars 1 forks source link

(PYL-W0120) Useless else clause detected on the loop #82

Closed argo0n closed 3 years ago

argo0n commented 3 years ago

Description

When a loop specifies no break statement, the else clause will always execute when the loop sequence is empty, thus making it useless. It is recommended to have the statements under else in the same scope as the loop itself. If the else clause does not always execute at the …

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/argo0n/NograBot/issue/PYL-W0120/occurrences/

argo0n commented 3 years ago

Fixed in commit 5104b20b7ac8dd79f18d5504e7f5d1a3f2f4414a.