Skip to content

Commit b23a868

Browse files
author
wangjichao
committed
refactor: add explicit fallback return to _parse_frozenset_of_strings for robustness
1 parent 2894b26 commit b23a868

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

codebase_rag/config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def _parse_frozenset_of_strings(value: str | frozenset[str] | None) -> frozenset
2323
if isinstance(value, frozenset):
2424
return frozenset(Path(path) for path in value)
2525
if isinstance(value, str):
26-
if not value.strip():
27-
return frozenset()
28-
return frozenset(
29-
Path(path.strip()) for path in value.split(",") if path.strip()
30-
)
26+
if value.strip():
27+
return frozenset(
28+
Path(path.strip()) for path in value.split(",") if path.strip()
29+
)
30+
return frozenset()
3131

3232

3333
class ApiKeyInfoEntry(TypedDict):

0 commit comments

Comments
 (0)