mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
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
Block a user