Fix problems found with ineffassign
This commit is contained in:
parent
28fcc53e45
commit
740b3f6ae2
9 changed files with 19 additions and 16 deletions
|
@ -39,7 +39,7 @@ func TestWriteFileDoubleClose(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
|
||||
// write to the other dup - should produce an error
|
||||
n, err = syscall.Write(fd2, buf)
|
||||
_, err = syscall.Write(fd2, buf)
|
||||
assert.Error(t, err, "input/output error")
|
||||
|
||||
// close the dup - should produce an error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue