Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
meringu committed Sep 16, 2024
1 parent 34533ad commit 227fd48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/core/terraform/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (*DistributionOpenTofu) ResolveConstraint(constraintStr string) (*version.V

allVersions, err := dl.ListVersions(context.Background())
if err != nil {
return nil, fmt.Errorf("error listing OpenTofu verisons: %s", err)
return nil, fmt.Errorf("error listing OpenTofu versions: %s", err)
}

var versions []*version.Version
Expand Down
2 changes: 1 addition & 1 deletion server/core/terraform/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (d *TofuDownloader) Install(dir string, _downloadURL string, v *version.Ver

// Write out the tofu binary to the disk:
file := filepath.Join(dir, "tofu"+v.String())
if err := os.WriteFile(file, binary, 0755); err != nil {
if err := os.WriteFile(file, binary, 0755); err != nil { // nolint: gosec
return "", err
}

Expand Down

0 comments on commit 227fd48

Please sign in to comment.