From 81f1f1cda9d4d2265f5310f3e0d8e7d995434326 Mon Sep 17 00:00:00 2001 From: lwolczynski Date: Mon, 16 Dec 2024 15:42:18 -0600 Subject: [PATCH] IWF-124: Ignore empty output for collector --- service/interpreter/outputCollector.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/interpreter/outputCollector.go b/service/interpreter/outputCollector.go index b28332b8..10da70cd 100644 --- a/service/interpreter/outputCollector.go +++ b/service/interpreter/outputCollector.go @@ -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 {