Skip to content

Commit

Permalink
Fix flake8-return warning
Browse files Browse the repository at this point in the history
RET507 Unnecessary `elif` after `continue` statement
  • Loading branch information
DimitriPapadopoulos committed Jan 5, 2024
1 parent e17ab4b commit 7b3e3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/command/bdist_egg.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def analyze_egg(egg_dir, stubs):
for name in files:
if name.endswith('.py') or name.endswith('.pyw'):
continue
elif name.endswith('.pyc') or name.endswith('.pyo'):
if name.endswith('.pyc') or name.endswith('.pyo'):
# always scan, even if we already know we're not safe
safe = scan_module(egg_dir, base, name, stubs) and safe
return safe
Expand Down

0 comments on commit 7b3e3f3

Please sign in to comment.