Skip to content

Commit

Permalink
s/ nolint/nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Aug 30, 2022
1 parent 8df19ff commit 7d734e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dht_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func isEUI(ip net.IP) bool {

func sameV6Net(a, b net.IP) bool {
//lint:ignore SA1021 We're comparing only parts of the IP address here.
return len(a) == net.IPv6len && len(b) == net.IPv6len && bytes.Equal(a[0:8], b[0:8]) // nolint
return len(a) == net.IPv6len && len(b) == net.IPv6len && bytes.Equal(a[0:8], b[0:8]) //nolint
}

func isRelayAddr(a ma.Multiaddr) bool {
Expand Down
2 changes: 1 addition & 1 deletion ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestHungRequest(t *testing.T) {
for _, proto := range d.serverProtocols {
// Hang on every request.
hosts[1].SetStreamHandler(proto, func(s network.Stream) {
defer s.Reset() // nolint
defer s.Reset() //nolint
<-ctx.Done()
})
}
Expand Down

0 comments on commit 7d734e1

Please sign in to comment.