diff --git a/protocol/attestation_apple.go b/protocol/attestation_apple.go index 0e7be7c..908511e 100644 --- a/protocol/attestation_apple.go +++ b/protocol/attestation_apple.go @@ -77,7 +77,7 @@ func verifyAppleFormat(att AttestationObject, clientDataHash []byte) (string, [] return "", nil, ErrAttestationFormat.WithDetails("Unable to parse apple attestation certificate extensions") } - if !bytes.Equal(decoded.Nonce, nonce[:]) || err != nil { + if !bytes.Equal(decoded.Nonce, nonce[:]) { return "", nil, ErrInvalidAttestation.WithDetails("Attestation certificate does not contain expected nonce") }