From 229616e173049d35646256091f1c062d8e3e561d Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 3 Jul 2024 16:36:56 +0200 Subject: [PATCH] cli/command/image: fakeClient.ImagesPrune: fix unhandled err-return Signed-off-by: Sebastiaan van Stijn --- cli/command/image/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/image/client_test.go b/cli/command/image/client_test.go index eb3a4cebef..8789a34789 100644 --- a/cli/command/image/client_test.go +++ b/cli/command/image/client_test.go @@ -69,7 +69,7 @@ func (cli *fakeClient) Info(_ context.Context) (system.Info, error) { func (cli *fakeClient) ImagePull(_ context.Context, ref string, options image.PullOptions) (io.ReadCloser, error) { if cli.imagePullFunc != nil { - cli.imagePullFunc(ref, options) + return cli.imagePullFunc(ref, options) } return io.NopCloser(strings.NewReader("")), nil }