Remove convenience handling of 'None'

Because this parameter has type checking, we'll get warned if this variable is None.

Contributes to issue CURA-4243.
This commit is contained in:
Ghostkeeper 2017-11-27 14:22:09 +01:00
parent 54a12d14c4
commit 952e3974eb
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -231,10 +231,6 @@ class QualityManager:
if quality_definition_id is not None:
machine_definition = ContainerRegistry.getInstance().findDefinitionContainers(id = quality_definition_id)[0]
# for convenience
if material_containers is None:
material_containers = []
if not material_containers:
active_stacks = ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks()
if active_stacks: