From af25b7556a02c895ee1fce45859cb09fc238872c Mon Sep 17 00:00:00 2001 From: nritholtz Date: Thu, 16 Feb 2023 09:04:44 -0500 Subject: [PATCH] fix linter issues --- main.go | 2 +- main_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 486c9dd..00e8e98 100644 --- a/main.go +++ b/main.go @@ -58,7 +58,7 @@ func init() { func gitClone(repository string, version string, moduleName string, destinationDir string) { cleanupPath := filepath.Join(destinationDir, moduleName) log.Printf("[*] Removing previously cloned artifacts at %s", cleanupPath) - os.RemoveAll(cleanupPath) + _ = os.RemoveAll(cleanupPath) log.Printf("[*] Checking out %s of %s \n", version, repository) cmd := exec.Command("git", "clone", "--single-branch", "--depth=1", "-b", version, repository, moduleName) cmd.Dir = destinationDir diff --git a/main_test.go b/main_test.go index 10f63c2..171aa5f 100644 --- a/main_test.go +++ b/main_test.go @@ -120,11 +120,11 @@ func TestTerraformWithTerrafilePath(t *testing.T) { // Assert checked out correct version for moduleName, cloneOptions := range map[string]map[string]string{ - "tf-aws-vpc": map[string]string{ + "tf-aws-vpc": { "repository": "git@github.com:terraform-aws-modules/terraform-aws-vpc", "version": "v1.46.0", }, - "tf-aws-vpc-experimental": map[string]string{ + "tf-aws-vpc-experimental": { "repository": "git@github.com:terraform-aws-modules/terraform-aws-vpc", "version": "master", },