Skip to content

Commit

Permalink
fix(s3): nil dereference when key isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
mstg committed Sep 11, 2021
1 parent 7c15c41 commit 6483386
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/blob/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6483386

Please sign in to comment.