Skip to content

Commit 8ae8b9c

Browse files
committed
cleanup
1 parent 1304a13 commit 8ae8b9c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,14 @@ class CustomEnvSettingsSource(EnvSettingsSource):
3838
def prepare_field_value(
3939
self, field_name: str, field: FieldInfo, value: Any, value_is_complex: bool
4040
) -> Any:
41-
if field_name in [
41+
if value and field_name in [
4242
"ignore_actions",
4343
"pull_request_user_reviewers",
4444
"pull_request_team_reviewers",
4545
"pull_request_labels",
4646
"release_types",
4747
"extra_workflow_locations",
4848
]:
49-
if not value:
50-
return None
5149
if value.startswith("[") and value.endswith("]"):
5250
return frozenset(json.loads(value))
5351
return frozenset(s.strip() for s in value.strip().split(",") if s)

0 commit comments

Comments
 (0)