mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 01:08:59 +08:00
Improve code style.
This commit is contained in:
parent
f3f9a2393f
commit
82bd89991e
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user