Removes unnecessary else/elif blocks (#26884)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-09-24 13:53:03 -07:00
1 parent 18873d202d
commit b1118cb8ff
13 files changed
+53 -42

No files matched your search

+2 -1
View File
@@ -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])