Skip to content

Commit

Permalink
Linting again
Browse files Browse the repository at this point in the history
  • Loading branch information
atomirex committed Dec 21, 2024
1 parent e55ee40 commit 62f186a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 {
Expand Down

0 comments on commit 62f186a

Please sign in to comment.