Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Oct 25, 2023
1 parent abb2899 commit edff389
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/internal/cluster/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewClusterWithWait(timeout time.Duration) (*Cluster, error) {
return c, nil
}

// NewCluster creates a new Cluster instance.
// NewCluster creates a new Cluster instance and validates connection to the cluster by fetching the Kubernetes version.
func NewCluster() (*Cluster, error) {
c := &Cluster{}
var err error
Expand Down
4 changes: 2 additions & 2 deletions src/pkg/packager/sources/tarball.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ func (s *TarballSource) LoadPackage(dst *layout.PackagePaths, unarchiveAll bool)
spinner := message.NewProgressSpinner("Loading package from %q", s.PackageSource)
defer spinner.Stop()

pathsExtracted := []string{}

if s.Shasum != "" {
if err := utils.SHAsMatch(s.PackageSource, s.Shasum); err != nil {
return err
}
}

pathsExtracted := []string{}

// Walk the package so that was can dynamically load a .tar or a .tar.zst without caring about filenames.
err = archiver.Walk(s.PackageSource, func(f archiver.File) error {
if f.IsDir() {
Expand Down

0 comments on commit edff389

Please sign in to comment.