From 9275e2cb66aabf04a11ed7c58096a94d507b5378 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 29 Oct 2019 12:11:42 +0100 Subject: [PATCH] cli/command/formatter: Error return value of `ImageWrite` is not checked (errcheck) Signed-off-by: Sebastiaan van Stijn --- cli/command/formatter/image_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/command/formatter/image_test.go b/cli/command/formatter/image_test.go index 7efad0a758..6df395457f 100644 --- a/cli/command/formatter/image_test.go +++ b/cli/command/formatter/image_test.go @@ -348,7 +348,8 @@ func TestImageContextWriteWithNoImage(t *testing.T) { } for _, context := range contexts { - ImageWrite(context.context, images) + err := ImageWrite(context.context, images) + assert.NilError(t, err) assert.Check(t, is.Equal(context.expected, out.String())) // Clean buffer out.Reset()