Skip to content

Commit

Permalink
chore: lint, ci
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana committed Oct 1, 2024
1 parent 195a56a commit 7ab132c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/coreinternal/errorutil/http.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

package errorutil
package errorutil // import "github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal/errorutil"

import (
"net/http"

"go.opentelemetry.io/collector/consumer/consumererror"
)

func HttpError(w http.ResponseWriter, err error) {
func HTTPError(w http.ResponseWriter, err error) {
if err == nil {
return
}
Expand Down
2 changes: 1 addition & 1 deletion receiver/sapmreceiver/trace_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (sr *sapmReceiver) HTTPHandlerFunc(rw http.ResponseWriter, req *http.Reques
// handle the request payload
err := sr.handleRequest(req)
if err != nil {
errorutil.HttpError(rw, err)
errorutil.HTTPError(rw, err)
return
}

Expand Down

0 comments on commit 7ab132c

Please sign in to comment.