Code style

CURA-9277

Co-authored-by: Jelle Spijker <j.spijker@ultimaker.com>
This commit is contained in:
Casper Lamboo 2022-08-22 14:32:59 +02:00 committed by GitHub
parent d83673a972
commit 77a179be76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ class CuraStackBuilder:
# Create user container # Create user container
user_container = cls.createUserChangesContainer(new_stack_id + "_user", definition.getId(), new_stack_id, user_container = cls.createUserChangesContainer(new_stack_id + "_user", definition.getId(), new_stack_id,
is_global_stack=True) is_global_stack = True)
stack.definitionChanges = cls.createDefinitionChangesContainer(stack, new_stack_id + "_settings") stack.definitionChanges = cls.createDefinitionChangesContainer(stack, new_stack_id + "_settings")
stack.variant = variant_container stack.variant = variant_container
@ -282,11 +282,11 @@ class CuraStackBuilder:
registry = application.getContainerRegistry() registry = application.getContainerRegistry()
container_tree = ContainerTree.getInstance() container_tree = ContainerTree.getInstance()
if registry.findContainerStacks(type="abstract_machine", id=abstract_machine_id): if registry.findContainerStacks(type = "abstract_machine", id = abstract_machine_id):
# This abstract machine already exists # This abstract machine already exists
return None return None
match registry.findDefinitionContainers(type="machine", id=definition_id): match registry.findDefinitionContainers(type = "machine", id = definition_id):
case []: case []:
# It should not be possible for the definition to be missing since an abstract machine will only # It should not be possible for the definition to be missing since an abstract machine will only
# be created as a result of a machine with definition_id being created. # be created as a result of a machine with definition_id being created.