mirror of
https://github.com/logos-messaging/go-discover.git
synced 2026-03-30 23:23:10 +00:00
chore: use stdlib min
This commit is contained in:
parent
14f865f7d3
commit
68b48e88df
@ -82,10 +82,3 @@ type ReadPacket struct {
|
||||
Data []byte
|
||||
Addr *net.UDPAddr
|
||||
}
|
||||
|
||||
func min(x, y int) int {
|
||||
if x > y {
|
||||
return y
|
||||
}
|
||||
return x
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user