summaryrefslogtreecommitdiffhomepage
path: root/table/table.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/table.go')
-rw-r--r--table/table.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/table/table.go b/table/table.go
index d40ac9c4..cf14d5c1 100644
--- a/table/table.go
+++ b/table/table.go
@@ -37,10 +37,8 @@ func (t *Table) GetRoutefamily() bgp.RouteFamily {
}
func (t *Table) insert(path *Path) *Destination {
- var dest *Destination
-
t.validatePath(path)
- dest = t.getOrCreateDest(path.GetNlri())
+ dest := t.getOrCreateDest(path.GetNlri())
if path.IsWithdraw {
// withdraw insert