Improve code style.

This commit is contained in:
Mark Burton 2019-10-17 16:42:43 +01:00
parent f3f9a2393f
commit 82bd89991e

View file

@ -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():