Skip to content

Commit

Permalink
inexistence is a success
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Sénéchal <[email protected]>
  • Loading branch information
pivilartisant and thomas-senechal authored Aug 14, 2024
1 parent 7c8fa9d commit 2bd3212
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func (c *Cache) Delete(fileName string) error {

err = os.Remove(fullPath)
if err != nil {
if os.IsNotExist(err) {
return nil
}

return fmt.Errorf("while deleting from cache: %w", err)
}

Expand Down

0 comments on commit 2bd3212

Please sign in to comment.