Skip to content

Commit bc7b341

Browse files
ensure error is always returned (#56)
Co-authored-by: Luke Lombardi <[email protected]>
1 parent beb022f commit bc7b341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (cas *ContentAddressableStorage) Get(hash string, offset, length int64, dst
199199
var err error
200200
value, found, err = cas.getFromDiskCache(hash, chunkKey)
201201
if err != nil || !found {
202-
return 0, err
202+
return 0, ErrContentNotFound
203203
}
204204
}
205205

0 commit comments

Comments
 (0)