mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 09:59:13 +08:00
namesys: remove unecessary peerID cast
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user