[WIP] v0.7.0 fixes and changes to cache and remotefetcher
This commit is contained in:
parent
086835453b
commit
edc669b340
@ -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, ¬Found) && s.config.IgnoreFileNotFound {
|
if errors.As(err, ¬Found) && 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user