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:
committed by
Paulus Schoutsen
parent
18873d202d
commit
b1118cb8ff
@@ -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