Skip to content

Commit

Permalink
namesys: remove unecessary peerID cast
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Jan 25, 2018
1 parent 40e8c94 commit 3edd726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion namesys/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3edd726

Please sign in to comment.