Skip to content

Commit

Permalink
fix: fix a lint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 committed Feb 6, 2024
1 parent 2de7aab commit 5424bbd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/engine/runtime/terraform/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ type InstallOption struct {
Intent *apiv1.Intent
}

type installResult struct {
execPath string
err error
}

// check and install the terraform executable binary if it has not been downloaded.
func (io *InstallOption) CheckAndInstall() error {
if len(io.Intent.Resources) < 1 {
Expand Down Expand Up @@ -159,7 +154,7 @@ func getTerraformInstallDir() (string, error) {
installDir := filepath.Join(kusionDir, tfInstallSubDir)

if _, err = os.Stat(installDir); os.IsNotExist(err) {
if err := os.Mkdir(installDir, 0755); err != nil {
if err := os.Mkdir(installDir, 0o755); err != nil {
return "", fmt.Errorf("failed to create terraform install directory: %v", err)
}
}
Expand Down

0 comments on commit 5424bbd

Please sign in to comment.