Skip to content

Commit

Permalink
Apply suggestions from code review.
Browse files Browse the repository at this point in the history
done as part of CURA-10722

Co-authored-by: Jelle Spijker <[email protected]>
  • Loading branch information
rburema and jellespijker authored Jul 28, 2023
1 parent 211279a commit 987fedc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UM/Settings/DefinitionContainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _deserializeDefinitions(self, settings_dict: Dict[str, Any], force_category:
# When there is a forced category (= parent) present, find the category parent, create it if it doesn't exist.
category_parent = None
if force_category:
category_parent = self.findDefinitions(key=force_category)
category_parent = self.findDefinitions(key = force_category)
category_parent = category_parent[0] if len(category_parent) > 0 else None

for key, value in settings_dict.items():
Expand All @@ -362,7 +362,7 @@ def appendAdditionalSettingDefinitions(self, additional_settings: Dict[str, Dict
create_new_categories = {}

for category, values in additional_settings.items():
if len(self.findDefinitions(key=category)) > 0:
if len(self.findDefinitions(key = category)) > 0:
merge_with_existing_categories[category] = values
else:
create_new_categories[category] = values
Expand Down

0 comments on commit 987fedc

Please sign in to comment.