Skip to content

Commit

Permalink
Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rnixx committed Oct 24, 2024
1 parent 5b88e1e commit e5b4187
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mxmake/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,8 @@ def create_config(
preseed_value = (
preseed_domain.get(setting.name, unset) if preseed_domain else unset
)
setting_default = (
preseed_value if preseed_value is not unset else setting_default
)
if preseed_value is unset:
preseed_value = setting_default
# use configured setting from parser if set
elif sfqn in parser.settings:
setting_default = parser.settings[sfqn]
Expand Down

0 comments on commit e5b4187

Please sign in to comment.