Removes unnecessary else/elif blocks (#26884)
This commit is contained in:
1 parent
18873d202d
commit
b1118cb8ff
13 files changed
+53
-42
No files matched your search
@@ -23,7 +23,8 @@ def run(args: List) -> int:
|
||||
for fil in os.listdir(path):
|
||||
if fil == "__pycache__":
|
||||
continue
|
||||
elif os.path.isdir(os.path.join(path, fil)):
|
||||
|
||||
if os.path.isdir(os.path.join(path, fil)):
|
||||
scripts.append(fil)
|
||||
elif fil != "__init__.py" and fil.endswith(".py"):
|
||||
scripts.append(fil[:-3])
|
||||
|
||||
Reference in new issue
Block a user