getAvailableMaterialsForMachineExtruder can never return None

So no need to check for it.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-19 17:32:39 +02:00
parent 5abb03e269
commit 46b489c3f9
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 2 additions and 7 deletions

View file

@ -103,7 +103,7 @@ class MaterialManager(QObject):
# A convenience function to get available materials for the given machine with the extruder position.
#
def getAvailableMaterialsForMachineExtruder(self, machine: "GlobalStack",
extruder_stack: "ExtruderStack") -> Optional[Dict[str, MaterialNode]]:
extruder_stack: "ExtruderStack") -> Dict[str, MaterialNode]:
nozzle_name = None
if extruder_stack.variant.getId() != "empty_variant":
nozzle_name = extruder_stack.variant.getName()