Skip to content

Commit 70266d8

Browse files
committed
refactor FeatureTemplateLibrary implementation
1 parent 02553f2 commit 70266d8

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

arho_feature_template/core/models.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,9 @@ def from_config_file(
8080
description=feature_data.get("description"),
8181
regulation_groups=[
8282
group
83-
for group in [
84-
cls.find_matching_group_config(group_name, regulation_group_libraries)
85-
for group_name in feature_data.get("regulation_groups")
86-
]
87-
if group
88-
]
89-
if feature_data.get("regulation_groups")
90-
else [],
83+
for group_name in feature_data.get("regulation_groups", [])
84+
if (group := cls.find_matching_group_config(group_name, regulation_group_libraries))
85+
],
9186
plan_id=None,
9287
id_=None,
9388
)

0 commit comments

Comments
 (0)