Skip to content

Commit 4ec52ad

Browse files
Replace dict.fromkeys() with set for simpler unique flag name deduplication
Co-authored-by: zhiyuanliang-ms <141655842+zhiyuanliang-ms@users.noreply.github.com>
1 parent 61ff753 commit 4ec52ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

featuremanagement/_featuremanagerbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _list_feature_flag_names(configuration: Mapping[str, Any]) -> List[str]:
6666
return []
6767

6868
flag_ids = [feature_flag.get("id") for feature_flag in feature_flags if feature_flag.get("id")]
69-
return list(dict.fromkeys(flag_ids))
69+
return list(set(flag_ids))
7070

7171

7272
class FeatureManagerBase(ABC):

0 commit comments

Comments
 (0)