mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +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 {
|
if err != nil {
|
||||||
return ErrInvalidAuthor
|
return ErrInvalidAuthor
|
||||||
}
|
}
|
||||||
if string(pid) != string(r.Author) {
|
if pid != r.Author {
|
||||||
return ErrInvalidAuthor
|
return ErrInvalidAuthor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user