fix(s3): nil dereference when key isn't found
This commit is contained in:
parent
7c15c41a9f
commit
6483386e19
|
@ -94,6 +94,8 @@ func (s *S3) Read(path string) ([]byte, error) {
|
|||
if !ok || s3err.Code() != s3.ErrCodeNoSuchKey {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
body, err := ioutil.ReadAll(obj.Body)
|
||||
|
|
Loading…
Reference in New Issue