Skip to content

Commit fabbece

Browse files
Appease gosimple warnings
1 parent b1b4621 commit fabbece

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

control-plane/internal/handlers/workflow_execution_events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ func applyEventToExecution(current *types.Execution, req *WorkflowExecutionEvent
141141
current.RunID = firstNonEmpty(req.RunID, req.WorkflowID, current.RunID)
142142
}
143143

144-
if payload := marshalJSON(req.InputData); payload != nil && len(payload) > 0 {
144+
if payload := marshalJSON(req.InputData); len(payload) > 0 {
145145
current.InputPayload = payload
146146
}
147-
if result := marshalJSON(req.Result); result != nil && len(result) > 0 {
147+
if result := marshalJSON(req.Result); len(result) > 0 {
148148
current.ResultPayload = result
149149
}
150150

0 commit comments

Comments
 (0)