We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e39de9 commit 8669305Copy full SHA for 8669305
commands2/sequentialcommandgroup.py
@@ -66,16 +66,13 @@ def execute(self):
66
self._commands[self._currentCommandIndex].initialize()
67
68
def end(self, interrupted: bool):
69
- if not interrupted:
70
- return
71
- if not self._commands:
72
73
- if not self._currentCommandIndex > -1:
74
75
- if not self._currentCommandIndex < len(self._commands):
76
+ if (
+ interrupted
+ and self._commands
+ and -1 < self._currentCommandIndex < len(self._commands)
+ ):
+ self._commands[self._currentCommandIndex].end(True)
77
78
- self._commands[self._currentCommandIndex].end(True)
79
self._currentCommandIndex = -1
80
81
def isFinished(self) -> bool:
0 commit comments