Skip to content
Snippets Groups Projects
Commit 27213986 authored by Christoph Petrausch's avatar Christoph Petrausch
Browse files

Fix bug in path.Equal. Use Compare()==0 instead of own implementation

parent c5ca8db0
Branches
Tags
No related merge requests found
......@@ -53,19 +53,7 @@ func (p *Path) Equal(q *Path) bool {
if p == nil || q == nil {
return false
}
if p.Type != q.Type {
return false
}
switch p.Type {
case BGPPathType:
if *p.BGPPath != *q.BGPPath {
return false
}
}
return true
return p.Compare(q) == 0
}
// PathsDiff gets the list of elements contained by a but not b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment