diff options
Diffstat (limited to 'libgo/go/net/interface_freebsd.go')
-rw-r--r-- | libgo/go/net/interface_freebsd.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/net/interface_freebsd.go b/libgo/go/net/interface_freebsd.go index 45badd6..2b51fcb 100644 --- a/libgo/go/net/interface_freebsd.go +++ b/libgo/go/net/interface_freebsd.go @@ -16,9 +16,9 @@ func interfaceMessages(ifindex int) ([]route.Message, error) { if err != nil { typ = route.RIBType(syscall.NET_RT_IFLIST) rib, err = route.FetchRIB(syscall.AF_UNSPEC, typ, ifindex) - } - if err != nil { - return nil, err + if err != nil { + return nil, err + } } return route.ParseRIB(typ, rib) } |