From e74e2c7741fa0abc0eea12985b93b3c4d4278684 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 29 Oct 2019 12:16:17 +0100 Subject: [PATCH] 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 --- cli/command/formatter/container_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/command/formatter/container_test.go b/cli/command/formatter/container_test.go index 0b70fa3426..bb179586ff 100644 --- a/cli/command/formatter/container_test.go +++ b/cli/command/formatter/container_test.go @@ -312,7 +312,8 @@ func TestContainerContextWriteWithNoContainers(t *testing.T) { } 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())) // Clean buffer out.Reset()