cli/command/image: fakeClient.ImagesPrune: fix unhandled err-return

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-07-03 17:09:41 +02:00
parent 42ba29395b
commit 229616e173
+1 -1
View File
@@ -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
}