From 711af6d0d6d592ffa70336a2bc1441423022a38f Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Wed, 21 Sep 2022 14:35:51 +0200 Subject: [PATCH] Fix linting issue --- acme/challenge.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acme/challenge.go b/acme/challenge.go index 143be1d3..8b3778e7 100644 --- a/acme/challenge.go +++ b/acme/challenge.go @@ -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{