Skip to content

Commit

Permalink
chore(lint): upgrade to v1.56.2
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jun 13, 2024
1 parent 2b02ac1 commit 8e802d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/providers/namecheap/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion internal/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/ipextract/ipextract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8e802d4

Please sign in to comment.