Skip to content

Commit

Permalink
IWF-124: Ignore empty output for collector
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski committed Dec 16, 2024
1 parent 6d54278 commit 81f1f1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/interpreter/outputCollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func NewOutputCollector(initOutputs []iwfidl.StateCompletionOutput) *OutputColle
}

func (o *OutputCollector) Add(output iwfidl.StateCompletionOutput) {
o.outputs = append(o.outputs, output)
if output.CompletedStateOutput != nil {
o.outputs = append(o.outputs, output)
}
}

func (o *OutputCollector) GetAll() []iwfidl.StateCompletionOutput {
Expand Down

0 comments on commit 81f1f1c

Please sign in to comment.