mirror of
https://github.com/rclone/rclone.git
synced 2025-12-12 06:24:14 +01:00
address stringent ineffectual assignment check in golangci-lint (#5093)
This commit is contained in:
@@ -495,11 +495,11 @@ func testPreventCorruption(t *testing.T, f *Fs) {
|
||||
billyChunk4Name := billyChunkName(4)
|
||||
_, err = f.base.NewObject(ctx, billyChunk4Name)
|
||||
require.NoError(t, err)
|
||||
billyChunk4, err := f.NewObject(ctx, billyChunk4Name)
|
||||
_, err = f.NewObject(ctx, billyChunk4Name)
|
||||
assertOverlapError(err)
|
||||
|
||||
f.opt.FailHard = false
|
||||
billyChunk4, err = f.NewObject(ctx, billyChunk4Name)
|
||||
billyChunk4, err := f.NewObject(ctx, billyChunk4Name)
|
||||
assert.NoError(t, err)
|
||||
require.NotNil(t, billyChunk4)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user