Skip to content

Commit

Permalink
Merge pull request #399 from warrensbox/fix-goreport-issues
Browse files Browse the repository at this point in the history
Fixing Goreport Issues
  • Loading branch information
MatrixCrawler committed Apr 25, 2024
2 parents 565b701 + 248499c commit d6d6b94
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func TestDownloadFromURL_FileNameMatch(t *testing.T) {
}

t.Logf("Current home directory: %q", home)
var installLocation = ""
if runtime.GOOS != "windows" {
installLocation = filepath.Join(home, installPath)
} else {
Expand Down
3 changes: 1 addition & 2 deletions lib/param_parsing/parameters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ func TestGetParameters_check_config_precedence(t *testing.T) {
getopt.CommandLine = getopt.New()
})
os.Args = []string{"cmd", "--chdir=../../test-data/integration-tests/test_precedence"}
parameters := prepare()
parameters = GetParameters()
parameters := GetParameters()
expected := "0.11.3"
if parameters.Version != expected {
t.Error("Version Param was not as expected. Actual: " + parameters.Version + ", Expected: " + expected)
Expand Down
2 changes: 1 addition & 1 deletion lib/param_parsing/terraform_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ func TestGetParamsFromTerraformVersion_no_file(t *testing.T) {
params.ChDirPath = "../../test-data/skip-integration-tests/test_no_file"
params, _ = GetParamsFromTerraformVersion(params)
if params.Version != "" {
t.Errorf("Expected emtpy version string. Got: %v", params.Version)
t.Errorf("Expected empty version string. Got: %v", params.Version)
}
}
2 changes: 1 addition & 1 deletion lib/param_parsing/tfswitch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ func TestGetParamsFromTfSwitch_no_file(t *testing.T) {
params.ChDirPath = "../../test-data/skip-integration-tests/test_no_file"
params, _ = GetParamsFromTfSwitch(params)
if params.Version != "" {
t.Errorf("Expected emtpy version string. Got: %v", params.Version)
t.Errorf("Expected empty version string. Got: %v", params.Version)
}
}
2 changes: 1 addition & 1 deletion lib/param_parsing/toml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestGetParamsTOML_no_file(t *testing.T) {
params.ChDirPath = "../../test-data/skip-integration-tests/test_no_file"
params, _ = getParamsTOML(params)
if params.Version != "" {
t.Errorf("Expected emtpy version string. Got: %v", params.Version)
t.Errorf("Expected empty version string. Got: %v", params.Version)
}
}

Expand Down

0 comments on commit d6d6b94

Please sign in to comment.