Skip to content

Commit

Permalink
fix: update comments
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed Nov 12, 2024
1 parent d91eeb2 commit 45849ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/notation/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ func getVerifier(ctx context.Context) (notation.Verifier, error) {
}
fileCache, err := crl.NewFileCache(cacheRoot)
if err != nil {
if !crlFetcher.DiscardCacheError {
return nil, err
}
// discard NewFileCache error directly as cache is not critical
logger.Debugf("failed to create file cache: %v", err)
}
var cache corecrl.Cache
Expand Down

0 comments on commit 45849ab

Please sign in to comment.