Skip to content

Commit 587d44a

Browse files
committed
remove overly defensive programming
1 parent 8bf2e69 commit 587d44a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

apps/sim/executor/execution/block-executor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ export class BlockExecutor {
221221
if (ChildWorkflowError.isChildWorkflowError(error)) {
222222
errorOutput.childTraceSpans = error.childTraceSpans
223223
errorOutput.childWorkflowName = error.childWorkflowName
224-
} else if (error && typeof error === 'object' && 'childTraceSpans' in error) {
225-
errorOutput.childTraceSpans = (error as any).childTraceSpans
226224
}
227225

228226
this.state.setBlockOutput(node.id, errorOutput, duration)

0 commit comments

Comments
 (0)