1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Removes unnecessary else/elif blocks (#26884)

This commit is contained in:
Franck Nijhof
2019-09-24 22:53:03 +02:00
committed by Paulus Schoutsen
parent 18873d202d
commit b1118cb8ff
13 changed files with 53 additions and 42 deletions

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])