Skip to content

Commit

Permalink
lint/gci
Browse files Browse the repository at this point in the history
Signed-off-by: alexgreenbank <[email protected]>
  • Loading branch information
alexgreenbank committed Aug 14, 2024
1 parent afdd09e commit 5c5193f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ import (
"encoding/json"
"testing"

"go.opentelemetry.io/collector/pdata/pcommon"

"github.com/DataDog/datadog-api-client-go/v2/api/datadogV1"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pdata/pmetric"
)

Expand Down
4 changes: 2 additions & 2 deletions receiver/datadogreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ func (ddr *datadogReceiver) handleCheckRun(w http.ResponseWriter, req *http.Requ
return
}

var services []translator.ServiceCheck
var services []translator.ServiceCheck

err = json.Unmarshal(buf.Bytes(), &services)
err = json.Unmarshal(buf.Bytes(), &services)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
ddr.params.Logger.Error(err.Error())
Expand Down
2 changes: 1 addition & 1 deletion receiver/datadogreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func TestDatadogServices_EndToEnd(t *testing.T) {

dd, err := newDataDogReceiver(
cfg,
receivertest.NewNopCreateSettings(),
receivertest.NewNopSettings(),
)
require.NoError(t, err, "Must not error when creating receiver")
dd.(*datadogReceiver).nextMetricsConsumer = sink
Expand Down

0 comments on commit 5c5193f

Please sign in to comment.