Skip to content

Commit

Permalink
fix return without assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
adlotsof committed Oct 21, 2024
1 parent befea36 commit db21119
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/component/otelcol/exporter/splunkhec/splunkhec.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
otelcolCfg "github.com/grafana/alloy/internal/component/otelcol/config"
"github.com/grafana/alloy/internal/component/otelcol/exporter"
splunkhec_config "github.com/grafana/alloy/internal/component/otelcol/exporter/splunkhec/config"

"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter"
otelcomponent "go.opentelemetry.io/collector/component"
otelextension "go.opentelemetry.io/collector/extension"
Expand Down Expand Up @@ -50,13 +51,12 @@ func (args *Arguments) SetToDefault() {

func (args Arguments) Convert() (otelcomponent.Config, error) {

res := splunkhec_config.SplunkHecArguments{
return (&splunkhec_config.SplunkHecArguments{
Splunk: args.Splunk,
QueueSettings: *args.Queue.Convert(),
RetrySettings: *args.Retry.Convert(),
SplunkHecClientArguments: args.Client}
return res.Convert(), nil

SplunkHecClientArguments: args.Client,
}).Convert(), nil
}

func (args *Arguments) Validate() error {
Expand Down

0 comments on commit db21119

Please sign in to comment.