Skip to content

Commit

Permalink
fix error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
myussufz committed Apr 23, 2019
1 parent cf2c4e0 commit ad5de67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aliyun_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ func (adapter *AliyunAdapter) ReadFile(bucket, path string) ([]byte, error) {
}

rc, err := object.GetObject(path)
if err != nil {
return nil, err
}

defer rc.Close()
slurp, err := ioutil.ReadAll(rc)
if err != nil {
Expand Down

0 comments on commit ad5de67

Please sign in to comment.