Skip to content

Commit f396630

Browse files
Logger should only be logged if the truststores and identities are present.
Signed-off-by: Jagpreet Singh Tamber <[email protected]>
1 parent f22fed4 commit f396630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/oci/notation/notation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func NewNotationVerifier(opts ...Options) (*NotationVerifier, error) {
193193
// SignatureVerification.VerificationLevel is set to trustpolicy.LevelSkip.Name.
194194
// If it is, it logs a warning message and removes the trust stores and trusted identities for that trust policy statement.
195195
// Finally, it returns the modified trustPolicy.
196-
func CleanTrustPolicy(trustPolicy *trustpolicy.Document, logger logr.Logger) *trustpolicy.Document {
196+
func cleanTrustPolicy(trustPolicy *trustpolicy.Document, logger logr.Logger) *trustpolicy.Document {
197197
if trustPolicy == nil {
198198
return nil
199199
}

0 commit comments

Comments
 (0)