summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-29 19:23:26 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-29 19:23:26 +0900
commit43e015854c85a41afd49ee66256e9f81d08d0c09 (patch)
treeafcbdca7663cc95093bd9a4dfdb2a04de4966b57 /table/destination.go
parent8d7129d399b06f46bac6fbb53f8c832f678d839b (diff)
table: make clear function to sort paths
We want to check out if two pointers are same or different here. Make the code clear. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/destination.go b/table/destination.go
index e3e1b914..8153bf3f 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -540,7 +540,7 @@ func (p paths) Less(i, j int) bool {
better.reason = reason
- if better.Equal(path1) {
+ if better == path1 {
return true
}
return false