staticcheck: empty branch
This commit is contained in:
parent
7b8c974dec
commit
a1fd60ec2b
2 changed files with 5 additions and 7 deletions
|
@ -782,11 +782,11 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = f.readMetaDataForPath(ctx, dstPath, &api.ResourceInfoRequestOptions{})
|
_, err = f.readMetaDataForPath(ctx, dstPath, &api.ResourceInfoRequestOptions{})
|
||||||
if apiErr, ok := err.(*api.ErrorResponse); ok {
|
if _, ok := err.(*api.ErrorResponse); ok {
|
||||||
// does not exist
|
// does not exist
|
||||||
if apiErr.ErrorName == "DiskNotFoundError" {
|
//if apiErr.ErrorName == "DiskNotFoundError" {
|
||||||
// OK
|
// // OK
|
||||||
}
|
//}
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return err
|
return err
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1459,9 +1459,7 @@ func Run(t *testing.T, opt *Opt) {
|
||||||
assert.Equal(t, metaMimeType, gotMimeType)
|
assert.Equal(t, metaMimeType, gotMimeType)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} // else: Have some metadata here we didn't write - can't really check it!
|
||||||
// Have some metadata here we didn't write - can't really check it!
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// TestObjectSetModTime tests that SetModTime works
|
// TestObjectSetModTime tests that SetModTime works
|
||||||
|
|
Loading…
Reference in a new issue