staticcheck: empty branch

This commit is contained in:
albertony 2022-06-24 17:20:31 +02:00
parent 7b8c974dec
commit a1fd60ec2b
2 changed files with 5 additions and 7 deletions

View File

@ -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 {

View File

@ -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