Skip to content

Commit

Permalink
ca: simplify code a bit
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Valenta <[email protected]>
  • Loading branch information
bwesterb and lukevalenta authored Mar 3, 2025
1 parent ca21b44 commit ba3b040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ca/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func Open(path string) (*Handle, error) {
return nil, fmt.Errorf("parsing %s: %w", h.skPath(), err)
}
switch h.params.EvidencePolicy {
case mtc.EmptyEvidencePolicyType:
case mtc.EmptyEvidencePolicyType, mtc.UmbilicalEvidencePolicyType:

Check failure on line 379 in ca/ca.go

View workflow job for this annotation

GitHub Actions / build

previous case
case mtc.UmbilicalEvidencePolicyType:

Check failure on line 380 in ca/ca.go

View workflow job for this annotation

GitHub Actions / build

duplicate case mtc.UmbilicalEvidencePolicyType (constant 1 of type mtc.EvidencePolicyType) in expression switch
default:
return nil, fmt.Errorf("unknown evidence policy: %d", h.params.EvidencePolicy)
Expand Down

0 comments on commit ba3b040

Please sign in to comment.