simplify if else logic
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
41c3ba5fa7
commit
3378b546da
1 changed files with 1 additions and 2 deletions
|
|
@ -212,9 +212,8 @@ func (p *Policy) verifyCertExtensions(attestation *verification.AttestationProce
|
|||
if !strings.EqualFold(p.OIDCIssuer, certIssuer) {
|
||||
if strings.Index(certIssuer, p.OIDCIssuer+"/") == 0 {
|
||||
return fmt.Errorf("expected Issuer to be %s, got %s -- if you have a custom OIDC issuer policy for your enterprise, use the --cert-oidc-issuer flag with your expected issuer", p.OIDCIssuer, certIssuer)
|
||||
} else {
|
||||
return fmt.Errorf("expected Issuer to be %s, got %s", p.OIDCIssuer, certIssuer)
|
||||
}
|
||||
return fmt.Errorf("expected Issuer to be %s, got %s", p.OIDCIssuer, certIssuer)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue