Skip to content

Commit

Permalink
Remove superfluous cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiden Fox Ivey authored and thomasten committed Mar 5, 2024
1 parent 8e469a1 commit 673f408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/azure_attestation/ra_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {
func verifyReportValues(report attestation.Report, signer []byte) error {
// You can either verify the UniqueID or the tuple (SignerID, ProductID, SecurityVersion, Debug).

if !bytes.Equal(report.SignerID, []byte(signer)) {
if !bytes.Equal(report.SignerID, signer) {
return errors.New("token does not contain the right signer id")
}
fmt.Println("✅ SignerID of the report equals the SignerID you passed to the client.")
Expand Down

0 comments on commit 673f408

Please sign in to comment.