Parcourir la source

Fix linting issue

Herman Slatman il y a 4 ans
Parent
commit
711af6d0d6
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      acme/challenge.go

+ 3 - 3
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{