Skip to content

Commit

Permalink
table: handle staticcheck's warnings
Browse files Browse the repository at this point in the history
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
  • Loading branch information
fujita committed Oct 26, 2019
1 parent 2e05695 commit ce62ea6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pkg/table/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ func UpdatePathAttrs4ByteAs(msg *bgp.BGPUpdate) error {
}

as4Len := 0
as4Params := make([]bgp.AsPathParamInterface, 0, len(as4Attr.Value))
var as4Params []bgp.AsPathParamInterface
if as4Attr != nil {
as4Params = make([]bgp.AsPathParamInterface, 0, len(as4Attr.Value))
for _, p := range as4Attr.Value {
// RFC 6793 6. Error Handling
//
Expand Down

0 comments on commit ce62ea6

Please sign in to comment.