From c9ee7afcb8cc2f0fbc195e0eea90b489529b6804 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 13 Oct 2016 11:31:07 +0200 Subject: [PATCH] Remove superfluous if statement CURA-2600 --- cura/Settings/MachineManager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 342ef8b450..1e7fc19c3e 100644 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -148,8 +148,7 @@ class MachineManager(QObject): if matching_extruder and matching_extruder.findContainer({"type": "material"}).getMetaDataEntry("GUID") != material_id: # Save the material that needs to be changed. Multiple changes will be handled by the callback. - if matching_extruder: - variant_container = matching_extruder.findContainer({"type": "variant"}) + variant_container = matching_extruder.findContainer({"type": "variant"}) if self._global_container_stack.getBottom().getMetaDataEntry("has_variants") and variant_container: variant_id = self.getQualityVariantId(self._global_container_stack.getBottom(), variant_container) for container in containers: