Skip to content

Commit

Permalink
making staticcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuf Kanchwala committed Sep 30, 2020
1 parent 629cf34 commit c15e0da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions pkg/cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ import (
func Run(iacType, iacVersion, cloudType, iacFilePath, iacDirPath, configFile,
policyPath, format, remoteType, remoteURL string, configOnly bool) {

// download remote repository
var tempDir string

// temp dir to download the remote repo
tempDir = filepath.Join(os.TempDir(), utils.GenRandomString(6))
tempDir := filepath.Join(os.TempDir(), utils.GenRandomString(6))
defer os.RemoveAll(tempDir)

// download remote repository
Expand Down
2 changes: 1 addition & 1 deletion pkg/iac-providers/terraform/v12/module-download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (m *MockDownloader) SubDirGlob(destDir, subDir string) (string, error) {
}

// ---------------------- unit tests -------------------------------- //
func TestisLocalSourceAddr(t *testing.T) {
func TestIsLocalSourceAddr(t *testing.T) {

table := []struct {
name string
Expand Down

0 comments on commit c15e0da

Please sign in to comment.