Fix problems found with ineffassign

This commit is contained in:
Nick Craig-Wood 2017-06-13 11:22:16 +01:00
parent 28fcc53e45
commit 740b3f6ae2
9 changed files with 19 additions and 16 deletions

View file

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