mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Apply suggestions from code review
CURA-9277 Co-authored-by: Jelle Spijker <j.spijker@ultimaker.com>
This commit is contained in:
parent
12f3581337
commit
35502e45fa
4 changed files with 6 additions and 6 deletions
|
@ -108,7 +108,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
:param container_type: :type{string} Type of the container (machine, quality, ...)
|
||||
:param container_name: :type{string} Name to check
|
||||
"""
|
||||
container_class = ContainerStack if container_type in "machine" else InstanceContainer
|
||||
container_class = ContainerStack if "machine" in container_type else InstanceContainer
|
||||
|
||||
return self.findContainersMetadata(container_type = container_class, id = container_name, type = container_type, ignore_case = True) or \
|
||||
self.findContainersMetadata(container_type = container_class, name = container_name, type = container_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue