summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorSergey Elantsev <elantsev.s@yandex.ru>2020-03-09 15:19:17 +0300
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2020-03-11 06:21:16 +0900
commit136c8222c493a9a5a44a89db153571f7ae5d75a5 (patch)
treefaf88fdeabfd8c9a466159c18c09e29992a8f41d /internal
parent077e3aa5ca05f4d9341f20d19c3bf6c6d8fedb69 (diff)
fixed style: unnecessary type cast after type switch and some minor issues.
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/table/adj.go2
1 files changed, 1 insertions, 1 deletions
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...)