chore: update golangci-lint (#13110)

This commit is contained in:
Joshua Powers 2023-04-18 14:01:28 -06:00 committed by GitHub
parent 7cd6f69b4c
commit e0b95ea391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -25,5 +25,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
version: v1.52.2
args: --timeout 15m0s --verbose --out-${NO_FUTURE}format tab

View File

@ -1,4 +1,4 @@
package jsonV1
package json_v1
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package jsonV1
package json_v1
import (
"encoding/json"

View File

@ -10,7 +10,7 @@ import (
"github.com/gorilla/mux"
"github.com/influxdata/telegraf/plugins/inputs/zipkin/codec"
"github.com/influxdata/telegraf/plugins/inputs/zipkin/codec/jsonV1"
json_v1 "github.com/influxdata/telegraf/plugins/inputs/zipkin/codec/jsonV1"
"github.com/influxdata/telegraf/plugins/inputs/zipkin/codec/thrift"
)
@ -124,7 +124,7 @@ func (s *SpanHandler) Spans(w http.ResponseWriter, r *http.Request) {
func ContentDecoder(r *http.Request) (codec.Decoder, error) {
contentType := r.Header.Get("Content-Type")
if contentType == "" {
return &jsonV1.JSON{}, nil
return &json_v1.JSON{}, nil
}
for _, v := range strings.Split(contentType, ",") {
@ -133,7 +133,7 @@ func ContentDecoder(r *http.Request) (codec.Decoder, error) {
break
}
if t == "application/json" {
return &jsonV1.JSON{}, nil
return &json_v1.JSON{}, nil
} else if t == "application/x-thrift" {
return &thrift.Thrift{}, nil
}