From 0d12a971adc5e9ec17b33d1904ef3e98e763d541 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 25 Jan 2018 14:33:42 -0800 Subject: [PATCH] namesys: remove unecessary peerID cast License: MIT Signed-off-by: Steven Allen --- namesys/publisher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namesys/publisher.go b/namesys/publisher.go index 3dc38c4d1..3bdca3771 100644 --- a/namesys/publisher.go +++ b/namesys/publisher.go @@ -322,7 +322,7 @@ func ValidateIpnsRecord(r *record.ValidationRecord) error { if err != nil { return ErrInvalidAuthor } - if string(pid) != string(r.Author) { + if pid != r.Author { return ErrInvalidAuthor }