[WIP] v0.7.0 fixes and changes to cache and remotefetcher
This commit is contained in:
parent
086835453b
commit
edc669b340
@ -51,12 +51,9 @@ func (s *S3Fetcher) Fetch(source string) ([]byte, error) {
|
|||||||
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 {
|
return nil, ErrFileNotFound
|
||||||
return nil, ErrFileNotFound
|
|
||||||
}
|
|
||||||
return nil, err
|
|
||||||
}
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user