Skip to content

Commit c923919

Browse files
committed
fix get tarball
1 parent 160f204 commit c923919

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/bridge/services/actions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package services
33
import (
44
"context"
55
"fmt"
6-
"io"
76
"os"
87
"path/filepath"
98
"strings"
109

1110
gqlclient "github.com/pluralsh/console/go/client"
11+
"github.com/pluralsh/console/go/polly/fs"
1212
"github.com/samber/lo"
1313

1414
"github.com/pluralsh/plural-cli/pkg/bridge"
@@ -265,8 +265,8 @@ func (s *Service) DownloadTarball(ctx context.Context, id, dir string) (string,
265265
if err != nil {
266266
return "", err
267267
}
268-
defer func(c io.Closer) { _ = c.Close() }(resp)
269-
if err := utils.Untar(dir, resp); err != nil {
268+
defer resp.Close()
269+
if err := fs.Untar(dir, resp); err != nil {
270270
return "", err
271271
}
272272
abs, err := filepath.Abs(dir)

0 commit comments

Comments
 (0)