fix(linter): be golangci lint compliant

This commit is contained in:
2025-08-12 09:16:17 +02:00
parent 26e4986b7e
commit c7d8002cd2

View File

@ -8,8 +8,6 @@ import (
"strings"
)
var version string
func main() {
ips := os.Args[1:]
switch {
@ -34,7 +32,10 @@ func main() {
for _, addr := range addrs {
if strings.Split(addr.String(), "/")[0] == ip {
fmt.Fprintln(os.Stdout, iface.Name)
_, err = fmt.Fprintln(os.Stdout, iface.Name)
if err != nil {
log.Fatal(err.Error())
}
return
}
}