Skip to content

Commit

Permalink
allow none selection in selectionToNodeInputs()
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoRoessner committed Apr 24, 2024
1 parent aad77cc commit 6be17d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analytics/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (this *Analytics) selectionToNodeInputs(token auth.Token, selection model.I
if selection.DeviceGroupSelection != nil {
return this.groupSelectionToNodeInputs(token, *selection.DeviceGroupSelection, task, inputId, portName)
}
return result, errors.New("expect selection to contain none nil value")
return []NodeInput{}, nil
}

func (this *Analytics) deviceSelectionToNodeInputs(selection model.DeviceSelection, inputPort string) (result []NodeInput, err error) {
Expand Down

0 comments on commit 6be17d8

Please sign in to comment.