Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: vojtapolasek <[email protected]>
  • Loading branch information
marcusburghardt and vojtapolasek authored Dec 16, 2024
1 parent 442cf73 commit dc6235b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssg/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _process_profile_extension(profiles_files: list, profile_yaml: dict,
dict: The updated profile variables after processing the extended profile,
or the original profile variables if no extension is found.
"""
extended_profile = profile_yaml.get("extends", None)
extended_profile = profile_yaml.get("extends")
if isinstance(extended_profile, str):
extended_profile = _get_extended_profile_path(profiles_files, extended_profile)
if extended_profile is not None:
Expand Down Expand Up @@ -258,7 +258,7 @@ def _process_selections(profile_yaml: dict, profile_variables: dict, policies: d
Returns:
dict: The updated profile variables dictionary.
"""
selections = profile_yaml.get("selections", None)
selections = profile_yaml.get("selections")
for selected in selections:
if "=" in selected and "!" not in selected:
variable_name, variable_value = selected.split('=', 1)
Expand Down

0 comments on commit dc6235b

Please sign in to comment.