syntax cleanup

This commit is contained in:
Joel Wetzell
2026-07-09 22:22:22 -05:00
parent 777f9c43de
commit b86ca20592
9 changed files with 26 additions and 13 deletions
+2 -1
View File
@@ -123,7 +123,8 @@ func (us *UDPServer) Start(ctx context.Context, inputHandler common.InputHandler
numBytes, _, err := listener.ReadFromUDP(buffer)
if err != nil {
//NOTE(jwetzell) we hit deadline
if opErr, ok := err.(*net.OpError); ok && opErr.Timeout() {
opErr, ok := err.(*net.OpError)
if ok && opErr.Timeout() {
continue
}
break