Skip to content

Commit

Permalink
pkg/commands: fix dropped errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Aug 9, 2023
1 parent 77c116b commit d9e5a8e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/commands/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,18 @@ func (i *imageCache) get(ctx context.Context, ref name.Reference, missFunc baseF
return nil, err
}
br, err = i.newLazyIndex(ref, idx, missFunc)
if err != nil {
return nil, err
}
} else {
img, err := ii.Image(h)
if err != nil {
return nil, err
}
br, err = i.newLazyImage(ref, img, missFunc)
}
if err != nil {
return nil, err
if err != nil {
return nil, err
}
}
i.cache.Store(ref.String(), br)
return br, nil
Expand Down

0 comments on commit d9e5a8e

Please sign in to comment.