chore: consolidate is_in_favs() methods

This commit is contained in:
aclist committed 2026-05-01 21:46:13 +09:00
1 parent eb4ee41742
commit 29aeb550b3
3 files changed
+6 -11

No files matched your search

+5 -5
View File
@@ -40,11 +40,11 @@ def get_favorites(path: Path) -> list[str]:
return conf["ip_list"]
def is_in_favs(record: str, path: Path) -> bool:
favs = get_favorites(path)
if record in favs:
return True
return False
# def is_in_favs(record: str, path: Path) -> bool:
# favs = get_favorites(path)
# if record in favs:
# return True
# return False
def enum_to_key(enum: Preferences) -> str: