From f149d0b82a49bae510a9ddc5f722ba92e5eb2a49 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 10 Jul 2018 11:14:23 +1000 Subject: [PATCH] bep40Priority: Include error in return --- bep40.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bep40.go b/bep40.go index 5930247f..fa696bda 100644 --- a/bep40.go +++ b/bep40.go @@ -74,7 +74,7 @@ func bep40PriorityBytes(a, b ipPort) ([]byte, error) { func bep40Priority(a, b ipPort) (peerPriority, error) { bs, err := bep40PriorityBytes(a, b) if err != nil { - return 0, nil + return 0, err } i := len(bs) / 2 _a, _b := bs[:i], bs[i:]