Skip to content

Commit

Permalink
fix: filesystem based blob storage should not fail when a blob is mis…
Browse files Browse the repository at this point in the history
…sing
  • Loading branch information
mstg committed Oct 15, 2021
1 parent ef5bd99 commit 16e049c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/blob/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func (f *File) Write(path string, content []byte) error {
func (f *File) Read(path string) ([]byte, error) {
r, err := os.OpenFile(filepath.Join(f.path, path), os.O_RDONLY, 0644)
if err != nil {
if os.IsNotExist(err) {
return nil, nil
}
return nil, err
}

Expand Down

0 comments on commit 16e049c

Please sign in to comment.