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 2, 2024
1 parent 7bb0f53 commit 78e7ca4
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 @@ -337,7 +337,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 78e7ca4

Please sign in to comment.