diff --git a/backend/yandex/yandex.go b/backend/yandex/yandex.go index 7eea7187f..3097a8bc9 100644 --- a/backend/yandex/yandex.go +++ b/backend/yandex/yandex.go @@ -782,11 +782,11 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string } _, err = f.readMetaDataForPath(ctx, dstPath, &api.ResourceInfoRequestOptions{}) - if apiErr, ok := err.(*api.ErrorResponse); ok { + if _, ok := err.(*api.ErrorResponse); ok { // does not exist - if apiErr.ErrorName == "DiskNotFoundError" { - // OK - } + //if apiErr.ErrorName == "DiskNotFoundError" { + // // OK + //} } else if err != nil { return err } else { diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go index 286a67871..97e44ea1a 100644 --- a/fstest/fstests/fstests.go +++ b/fstest/fstests/fstests.go @@ -1459,9 +1459,7 @@ func Run(t *testing.T, opt *Opt) { assert.Equal(t, metaMimeType, gotMimeType) } }) - } else { - // Have some metadata here we didn't write - can't really check it! - } + } // else: Have some metadata here we didn't write - can't really check it! }) // TestObjectSetModTime tests that SetModTime works