fix: lint errors
This commit is contained in:
parent
9fbfc0ca82
commit
d727d6b68e
4 changed files with 8 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue