Skip to content

Commit 70d629f

Browse files
committed
Add missing return statement on pull unpack
Signed-off-by: Derek McGowan <[email protected]>
1 parent e017143 commit 70d629f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func (c *Client) Pull(ctx context.Context, ref string, opts ...RemoteOpt) (Image
366366
}
367367
if pullCtx.Unpack {
368368
if err := img.Unpack(ctx, pullCtx.Snapshotter); err != nil {
369-
errors.Wrapf(err, "failed to unpack image on snapshotter %s", pullCtx.Snapshotter)
369+
return nil, errors.Wrapf(err, "failed to unpack image on snapshotter %s", pullCtx.Snapshotter)
370370
}
371371
}
372372
return img, nil

0 commit comments

Comments
 (0)