fixed linting issues

This commit is contained in:
ProtoTess
2025-10-30 02:03:34 +00:00
parent bf7c8d6d1b
commit 7816735dad
6 changed files with 138 additions and 10 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ func Discover(ctx context.Context, timeout time.Duration) ([]*Device, error) {
if err != nil {
return nil, fmt.Errorf("failed to listen on multicast address: %w", err)
}
defer conn.Close()
defer func() { _ = conn.Close() }()
// Set read deadline
if err := conn.SetReadDeadline(time.Now().Add(timeout)); err != nil {