Skip to content

Commit 616bc5c

Browse files
barmacnikku
andcommitted
chore: code style
Co-authored-by: Nico Rehwaldt <git_nikku@nixis.de>
1 parent fabf7da commit 616bc5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/TaskExecution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default class TaskExecution extends EventEmitter {
182182
incident = getIncident(getProcessInstanceIncidentResult.response);
183183
}
184184

185-
const isCompleted = [ 'COMPLETED', 'TERMINATED', 'CANCELED' ].includes(state ?? '');
185+
const isCompleted = state && [ 'COMPLETED', 'TERMINATED', 'CANCELED' ].includes(state);
186186

187187
if (isCompleted || hasIncident) {
188188
const getProcessInstanceVariablesResult = await this._api.getProcessInstanceVariables(processInstanceKey);

0 commit comments

Comments
 (0)