namesys: remove unecessary peerID cast
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Jan 25, 2018 at 14:33 UTC
0d12a971adc5e9ec17b33d1904ef3e98e763d541
1 file changed
+1
-1
namesys/publisher.go
+1
-1
@@ -322,7 +322,7 @@ func ValidateIpnsRecord(r *record.ValidationRecord) error {
322
if err != nil {
323
return ErrInvalidAuthor
324
}
325
- if string(pid) != string(r.Author) {
325
+ if pid != r.Author {
326
return ErrInvalidAuthor
327
}
328