1
0
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:
Tony Chen
2021-03-05 22:40:38 +08:00
committed by GitHub
parent 18752bf0ec
commit f86c91849b
15 changed files with 76 additions and 45 deletions
+1 -2
View File
@@ -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()