Skip to content

Commit c1bdce7

Browse files
committed
fix(docker): check the pull body close, as errcheck requires
1 parent f924522 commit c1bdce7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/docker/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (b *Backend) ensureImage(ctx context.Context, ref string) error {
3333
if err != nil {
3434
return fmt.Errorf("%w: pull image %q: %w", sandbox.ErrImageUnavailable, ref, err)
3535
}
36-
defer body.Close()
36+
defer func() { _ = body.Close() }()
3737

3838
// The pull is only complete once the response body is drained: the daemon
3939
// streams progress and does the work as it is read, so returning early would

0 commit comments

Comments
 (0)