iterdir doesn't need a list

This commit is contained in:
Trenton H
2026-03-31 07:32:27 -07:00
parent f36ea803d1
commit 881196183c
+1 -1
View File
@@ -132,7 +132,7 @@ def wipe_index(index_dir: Path) -> None:
Args:
index_dir: Path to the search index directory to clear
"""
for child in list(index_dir.iterdir()):
for child in index_dir.iterdir():
if child.is_dir():
shutil.rmtree(child)
else: