From 62f186a9a5e28e5999be1b1839e541e395a94c42 Mon Sep 17 00:00:00 2001 From: atomirex Date: Sat, 21 Dec 2024 16:15:20 -0500 Subject: [PATCH] Linting again --- conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conn.go b/conn.go index b8ea76a..d29fe87 100644 --- a/conn.go +++ b/conn.go @@ -1159,7 +1159,7 @@ func (c *Conn) start(started chan<- struct{}, inboundBufferSize int, config *Con } } -//nolint:gocognit +//nolint:all func addrFromAnswerHeader(answer dnsmessage.Resource) (*netip.Addr, error) { switch answer.Header.Type { case dnsmessage.TypeA: @@ -1183,7 +1183,7 @@ func addrFromAnswerHeader(answer dnsmessage.Resource) (*netip.Addr, error) { } } - return nil, fmt.Errorf("Unhandled resource type in answer") + return nil, fmt.Errorf("unhandled resource type in answer") } func isSupportedIPv6(addr netip.Addr, ipv6Only bool) bool {