Skip to content

Commit a15e7a0

Browse files
Merge pull request #2332 from dmcgowan/fix-missing-return-in-client-pull
Add missing return statement on pull unpack
2 parents 6eee2a0 + 70d629f commit a15e7a0

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)