Explorar el Código

Fix linting issue

Herman Slatman hace 4 años
padre
commit
711af6d0d6
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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
 		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{
 	verifiedChains, err := leaf.Verify(x509.VerifyOptions{