address stringent ineffectual assignment check in golangci-lint (#5093)

This commit is contained in:
Ivan Andreev
2021-03-04 14:26:48 +03:00
committed by GitHub
parent 0ad38dd6fa
commit 7aa7acd926
2 changed files with 3 additions and 3 deletions

View File

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