mirror of https://github.com/docker/cli.git
cli/command/formatter: Error return value of `ContainerWrite` is not checked (errcheck)
``` cli/command/formatter/container_test.go:315:17: Error return value of `ContainerWrite` is not checked (errcheck) ContainerWrite(context.context, containers) ^ ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
008f6a2da3
commit
e74e2c7741
|
@ -312,7 +312,8 @@ func TestContainerContextWriteWithNoContainers(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, context := range contexts {
|
for _, context := range contexts {
|
||||||
ContainerWrite(context.context, containers)
|
err := ContainerWrite(context.context, containers)
|
||||||
|
assert.NilError(t, err)
|
||||||
assert.Check(t, is.Equal(context.expected, out.String()))
|
assert.Check(t, is.Equal(context.expected, out.String()))
|
||||||
// Clean buffer
|
// Clean buffer
|
||||||
out.Reset()
|
out.Reset()
|
||||||
|
|
Loading…
Reference in New Issue