Skip to content

Commit c4e0924

Browse files
committed
fix: repeated path collection
1 parent 478f35e commit c4e0924

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

deepmd/common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ def expand_sys_str(root_dir: Union[str, Path]) -> list[str]:
203203
"""
204204
root_dir = DPPath(root_dir)
205205
matches = [str(p.parent) for p in root_dir.rglob("type.raw") if p.is_file()]
206-
if (root_dir / "type.raw").is_file():
207-
matches.append(str(root_dir))
208206
return matches
209207

210208

0 commit comments

Comments
 (0)