Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit af25b75

Browse files
committed
fix linter issues
1 parent 080cfbb commit af25b75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func init() {
5858
func gitClone(repository string, version string, moduleName string, destinationDir string) {
5959
cleanupPath := filepath.Join(destinationDir, moduleName)
6060
log.Printf("[*] Removing previously cloned artifacts at %s", cleanupPath)
61-
os.RemoveAll(cleanupPath)
61+
_ = os.RemoveAll(cleanupPath)
6262
log.Printf("[*] Checking out %s of %s \n", version, repository)
6363
cmd := exec.Command("git", "clone", "--single-branch", "--depth=1", "-b", version, repository, moduleName)
6464
cmd.Dir = destinationDir

main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ func TestTerraformWithTerrafilePath(t *testing.T) {
120120

121121
// Assert checked out correct version
122122
for moduleName, cloneOptions := range map[string]map[string]string{
123-
"tf-aws-vpc": map[string]string{
123+
"tf-aws-vpc": {
124124
"repository": "[email protected]:terraform-aws-modules/terraform-aws-vpc",
125125
"version": "v1.46.0",
126126
},
127-
"tf-aws-vpc-experimental": map[string]string{
127+
"tf-aws-vpc-experimental": {
128128
"repository": "[email protected]:terraform-aws-modules/terraform-aws-vpc",
129129
"version": "master",
130130
},

0 commit comments

Comments
 (0)