mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
putio: fix panic on Object.Open #4315
This commit is contained in:
parent
b2ded6212b
commit
16422a6b78
@ -248,7 +248,10 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Read
|
||||
_ = resp.Body.Close()
|
||||
return nil, fserrors.NoRetryError(err)
|
||||
}
|
||||
return resp.Body, err
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return resp.Body, nil
|
||||
}
|
||||
|
||||
// Update the already existing object
|
||||
|
Loading…
Reference in New Issue
Block a user