From 82bd89991e7ee6f15da5ec1baa0d22111796842a Mon Sep 17 00:00:00 2001 From: Mark Burton Date: Thu, 17 Oct 2019 16:42:43 +0100 Subject: [PATCH] Improve code style. --- plugins/CuraEngineBackend/StartSliceJob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py index 06ef2d97b1..94f6d3edfa 100644 --- a/plugins/CuraEngineBackend/StartSliceJob.py +++ b/plugins/CuraEngineBackend/StartSliceJob.py @@ -107,7 +107,7 @@ class StartSliceJob(Job): return False # if there are no per-object settings we don't need to check the other settings here - if stack.getTop() == None or len(stack.getTop().getAllKeys()) == 0: + if stack.getTop() is None or not stack.getTop().getAllKeys(): return False for key in stack.getAllKeys():