From 136c8222c493a9a5a44a89db153571f7ae5d75a5 Mon Sep 17 00:00:00 2001 From: Sergey Elantsev Date: Mon, 9 Mar 2020 15:19:17 +0300 Subject: fixed style: unnecessary type cast after type switch and some minor issues. --- internal/pkg/table/adj.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/pkg') diff --git a/internal/pkg/table/adj.go b/internal/pkg/table/adj.go index aedc41d6..49315e87 100644 --- a/internal/pkg/table/adj.go +++ b/internal/pkg/table/adj.go @@ -228,7 +228,7 @@ func (adj *AdjRib) MarkLLGRStaleOrDrop(rfList []bgp.RouteFamily) []*Path { func (adj *AdjRib) Select(family bgp.RouteFamily, accepted bool, option ...TableSelectOption) (*Table, error) { t, ok := adj.table[family] if !ok { - t = NewTable((family)) + t = NewTable(family) } option = append(option, TableSelectOption{adj: true}) return t.Select(option...) -- cgit v1.2.3