mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix issues found by errcheck
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -128,7 +128,7 @@ func getMyIP() (ip net.IP, v6 bool) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
defer conn.Close()
|
||||
defer func() { _ = conn.Close() }()
|
||||
|
||||
addr := conn.LocalAddr().(*net.TCPAddr)
|
||||
ip = addr.IP
|
||||
|
||||
Reference in New Issue
Block a user