chore(lint): upgrade to v1.56.2

This commit is contained in:
Quentin McGaw
2024-06-13 09:10:33 +00:00
parent 2b02ac154e
commit 8e802d45ae
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ ARG BUILDPLATFORM=linux/amd64
ARG ALPINE_VERSION=3.19
ARG GO_VERSION=1.22
ARG XCPUTRANSLATE_VERSION=v0.6.0
ARG GOLANGCI_LINT_VERSION=v1.55.2
ARG GOLANGCI_LINT_VERSION=v1.56.2
ARG MOCKGEN_VERSION=v1.6.0
FROM --platform=${BUILDPLATFORM} qmcgaw/xcputranslate:${XCPUTRANSLATE_VERSION} AS xcputranslate

View File

@@ -134,7 +134,7 @@ func (p *Provider) Update(ctx context.Context, client *http.Client, ip netip.Add
}
decoder := xml.NewDecoder(response.Body)
decoder.CharsetReader = func(encoding string, input io.Reader) (io.Reader, error) {
decoder.CharsetReader = func(_ string, input io.Reader) (io.Reader, error) {
return input, nil
}

View File

@@ -20,7 +20,7 @@ func New(settings Settings) (resolver *net.Resolver, err error) {
dialer := net.Dialer{Timeout: settings.Timeout}
return &net.Resolver{
PreferGo: true,
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
Dial: func(ctx context.Context, _, _ string) (net.Conn, error) {
const protocol = "udp"
return dialer.DialContext(ctx, protocol, *settings.Address)
},

View File

@@ -80,7 +80,7 @@ func Test_IPv6(t *testing.T) {
}
func Fuzz_IPv6(f *testing.F) {
f.Fuzz(func(t *testing.T, ipv6A, ipv6B, ipv6C []byte,
f.Fuzz(func(_ *testing.T, ipv6A, ipv6B, ipv6C []byte,
garbageA, garbageB, garbageC string) {
var arrayA [16]byte
if len(ipv6A) > 0 {