fix: lint errors

This commit is contained in:
Yiyang Kang 2025-04-17 12:33:13 +09:00
parent 9fbfc0ca82
commit d727d6b68e
Signed by: kkyy
GPG key ID: 80FD317ECAF06CC3
4 changed files with 8 additions and 12 deletions

View file

@ -11,7 +11,7 @@ func getLocalIP() (net.IP, error) {
if err != nil {
return nil, err
}
defer conn.Close()
defer func() { _ = conn.Close() }()
host, _, err := net.SplitHostPort(conn.LocalAddr().String())
if err != nil {