From 5c3ebc01fa8f8f99832983007b2b1ee0a217a22a Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Tue, 10 Jan 2017 14:17:30 +0900 Subject: packet/bgp: Fix unused return parameter "err" Signed-off-by: IWASE Yusuke --- packet/bgp/bgp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet/bgp') diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index c072a210..a3351558 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -3787,9 +3787,9 @@ func NewPrefixFromRouteFamily(afi uint16, safi uint8) (prefix AddrPrefixInterfac case RF_OPAQUE: prefix = &OpaqueNLRI{} default: - return nil, fmt.Errorf("unknown route family. AFI: %d, SAFI: %d", afi, safi) + err = fmt.Errorf("unknown route family. AFI: %d, SAFI: %d", afi, safi) } - return prefix, nil + return prefix, err } type BGPAttrFlag uint8 -- cgit v1.2.3