Skip to content

Commit

Permalink
Fix cache check (#1202)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikalai Radchuk <[email protected]>
  • Loading branch information
m1kola authored Sep 3, 2024
1 parent ffd0fe5 commit f4ea259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/catalogmetadata/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (fsc *filesystemCache) FetchCatalogContents(ctx context.Context, catalog *c
// this to be the same value, skip the write logic and return
// the cached contents
if data, ok := fsc.cacheDataByCatalogName[catalog.Name]; ok {
if data.ResolvedRef == catalog.Status.ResolvedSource.Image.Ref {
if data.ResolvedRef == catalog.Status.ResolvedSource.Image.ResolvedRef {
return os.DirFS(cacheDir), nil
}
}
Expand Down

0 comments on commit f4ea259

Please sign in to comment.