good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5fefe39b authored by Felix Lange's avatar Felix Lange Committed by Péter Szilágyi
Browse files

p2p/netutil: fix staticcheck warning (#20315)

parent dfe89127
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ func sameNet(bits uint, ip, other net.IP) bool {
if mask != 0 && nb < len(ip) && ip[nb]&mask != other[nb]&mask {
return false
}
return nb <= len(ip) && bytes.Equal(ip[:nb], other[:nb])
return nb <= len(ip) && ip[:nb].Equal(other[:nb])
}
// DistinctNetSet tracks IPs, ensuring that at most N of them
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment