[WIP] v0.7.0 fixes and changes to cache and remotefetcher

This commit is contained in:
Andrew Woodlee 2025-01-28 15:43:57 -06:00
parent 086835453b
commit edc669b340

View File

@ -50,7 +50,6 @@ func (s *S3Fetcher) Fetch(source string) ([]byte, error) {
Bucket: &bucket, Bucket: &bucket,
Key: &key, Key: &key,
}) })
if err != nil {
if err != nil { if err != nil {
var notFound *types.NoSuchKey var notFound *types.NoSuchKey
if errors.As(err, &notFound) && s.config.IgnoreFileNotFound { if errors.As(err, &notFound) && s.config.IgnoreFileNotFound {
@ -58,8 +57,6 @@ func (s *S3Fetcher) Fetch(source string) ([]byte, error) {
} }
return nil, err return nil, err
} }
return nil, err
}
defer resp.Body.Close() defer resp.Body.Close()
buf := new(bytes.Buffer) buf := new(bytes.Buffer)