mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 15:30:06 +08:00
dropbox, yandex: fix return of wrapped nil introduced in 79e3c67bbd
This commit is contained in:
parent
175c39e1d0
commit
5b6dd36307
|
@ -207,11 +207,12 @@ func (f *Fs) setRoot(root string) {
|
|||
// Return an Object from a path
|
||||
//
|
||||
// If it can't be found it returns the error fs.ErrorObjectNotFound.
|
||||
func (f *Fs) newObjectWithInfo(remote string, info *dropbox.Entry) (o *Object, err error) {
|
||||
o = &Object{
|
||||
func (f *Fs) newObjectWithInfo(remote string, info *dropbox.Entry) (fs.Object, error) {
|
||||
o := &Object{
|
||||
fs: f,
|
||||
remote: remote,
|
||||
}
|
||||
var err error
|
||||
if info != nil {
|
||||
err = o.setMetadataFromEntry(info)
|
||||
} else {
|
||||
|
|
|
@ -327,11 +327,12 @@ func (f *Fs) NewObject(remote string) (fs.Object, error) {
|
|||
// Return an Object from a path
|
||||
//
|
||||
// If it can't be found it returns the error fs.ErrorObjectNotFound.
|
||||
func (f *Fs) newObjectWithInfo(remote string, info *yandex.ResourceInfoResponse) (o *Object, err error) {
|
||||
o = &Object{
|
||||
func (f *Fs) newObjectWithInfo(remote string, info *yandex.ResourceInfoResponse) (fs.Object, error) {
|
||||
o := &Object{
|
||||
fs: f,
|
||||
remote: remote,
|
||||
}
|
||||
var err error
|
||||
if info != nil {
|
||||
err = o.setMetaData(info)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user