From 72027852e23647ecba0d79ff0f42787bfbe9a4c7 Mon Sep 17 00:00:00 2001 From: Sergey Elantsev Date: Wed, 27 Jan 2021 21:43:39 +0300 Subject: go fmted --- pkg/packet/bgp/bgp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/packet/bgp/bgp.go') diff --git a/pkg/packet/bgp/bgp.go b/pkg/packet/bgp/bgp.go index c55c4681..5112e7ae 100644 --- a/pkg/packet/bgp/bgp.go +++ b/pkg/packet/bgp/bgp.go @@ -2384,7 +2384,7 @@ func (er *EVPNEthernetAutoDiscoveryRoute) Len() int { func (er *EVPNEthernetAutoDiscoveryRoute) DecodeFromBytes(data []byte) error { er.RD = GetRouteDistinguisher(data) rdLen := er.RD.Len() - if len(data) < rdLen + 14 { // 14 is 10 for + if len(data) < rdLen+14 { // 14 is 10 for return NewMessageError(BGP_ERROR_UPDATE_MESSAGE_ERROR, BGP_ERROR_SUB_MALFORMED_ATTRIBUTE_LIST, nil, "bad Ethernet Auto-discovery Route length") } data = data[er.RD.Len():] @@ -2644,7 +2644,7 @@ func (er *EVPNMulticastEthernetTagRoute) Len() int { func (er *EVPNMulticastEthernetTagRoute) DecodeFromBytes(data []byte) error { er.RD = GetRouteDistinguisher(data) rdLen := er.RD.Len() - if len(data) < rdLen + 4 { + if len(data) < rdLen+4 { return NewMessageError(BGP_ERROR_UPDATE_MESSAGE_ERROR, BGP_ERROR_SUB_MALFORMED_ATTRIBUTE_LIST, nil, "invalid length of multicast ethernet tag route") } data = data[er.RD.Len():] -- cgit v1.2.3