Fix linting issue

This commit is contained in:
Herman Slatman 2022-09-21 14:35:51 +02:00
parent ce3215c702
commit 711af6d0d6
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F

View file

@ -519,9 +519,9 @@ func doTPMAttestationFormat(ctx context.Context, ch *Challenge, db DB, att *Atte
leaf.UnhandledCriticalExtensions = unhandledCriticalExtensions
}
roots, err := prov.GetAttestationRoots()
if err != nil {
return nil, WrapErrorISE(err, "error getting tpm attestation root CAs")
roots, ok := prov.GetAttestationRoots()
if !ok {
return nil, NewErrorISE("error getting tpm attestation root CAs")
}
verifiedChains, err := leaf.Verify(x509.VerifyOptions{