forked from TrueCloudLab/certificates
Fix linting issue
This commit is contained in:
parent
ce3215c702
commit
711af6d0d6
1 changed files with 3 additions and 3 deletions
|
@ -519,9 +519,9 @@ func doTPMAttestationFormat(ctx context.Context, ch *Challenge, db DB, att *Atte
|
||||||
leaf.UnhandledCriticalExtensions = unhandledCriticalExtensions
|
leaf.UnhandledCriticalExtensions = unhandledCriticalExtensions
|
||||||
}
|
}
|
||||||
|
|
||||||
roots, err := prov.GetAttestationRoots()
|
roots, ok := prov.GetAttestationRoots()
|
||||||
if err != nil {
|
if !ok {
|
||||||
return nil, WrapErrorISE(err, "error getting tpm attestation root CAs")
|
return nil, NewErrorISE("error getting tpm attestation root CAs")
|
||||||
}
|
}
|
||||||
|
|
||||||
verifiedChains, err := leaf.Verify(x509.VerifyOptions{
|
verifiedChains, err := leaf.Verify(x509.VerifyOptions{
|
||||||
|
|
Loading…
Add table
Reference in a new issue