mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2025-01-06 00:20:56 +00:00
fix(s3): nil dereference when key isn't found
This commit is contained in:
parent
7c15c41a9f
commit
6483386e19
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue