mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
fix lint check (#746)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package host
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net"
|
||||
"strconv"
|
||||
)
|
||||
@@ -46,7 +45,7 @@ func Extract(hostport string, lis net.Listener) (string, error) {
|
||||
}
|
||||
ifaces, err := net.Interfaces()
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Failed to get net interfaces: %v", err)
|
||||
return "", err
|
||||
}
|
||||
for _, iface := range ifaces {
|
||||
addrs, err := iface.Addrs()
|
||||
|
||||
Reference in New Issue
Block a user