Skip to content

Commit

Permalink
cli/command/image: fakeClient.ImagesPrune: fix unhandled err-return
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Jul 3, 2024
1 parent 42ba293 commit 229616e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/image/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 229616e

Please sign in to comment.