Skip to content

Commit b78b8bb

Browse files
committed
turn canLookupByIssuer into variable
The function was a relic from past refactoring code, not necessary anymore.
1 parent 9a1e191 commit b78b8bb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

kms/capi/capi.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,7 @@ func (k *CAPIKMS) getCertContext(req *apiv1.LoadCertificateRequest) (*windows.Ce
353353
return nil, fmt.Errorf("CertOpenStore for the %q store %q returned: %w", storeLocation, storeName, err)
354354
}
355355

356-
canLookupByIssuer := func() bool {
357-
return issuerName != "" && (serialNumber != "" || subjectCN != "" || friendlyName != "" || description != "")
358-
}
356+
canLookupByIssuer := issuerName != "" && (serialNumber != "" || subjectCN != "" || friendlyName != "" || description != "")
359357

360358
var handle *windows.CertContext
361359

0 commit comments

Comments
 (0)