From 5e200edab5379d81ae5c0f57f589610e69d55815 Mon Sep 17 00:00:00 2001 From: David Allen Date: Tue, 25 Mar 2025 14:54:09 -0600 Subject: [PATCH] lint: apply changes from golint --- cmd/secrets.go | 4 ++-- pkg/collect.go | 2 +- tests/compatibility_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/secrets.go b/cmd/secrets.go index 3766de9..cb6a191 100644 --- a/cmd/secrets.go +++ b/cmd/secrets.go @@ -60,7 +60,7 @@ var secretsStoreCmd = &cobra.Command{ Short: "Stores the given string value under secretID.", Run: func(cmd *cobra.Command, args []string) { var ( - secretID string = args[0] + secretID = args[0] secretValue string store secrets.SecretStore inputFileBytes []byte @@ -163,7 +163,7 @@ var secretsStoreCmd = &cobra.Command{ func isValidCredsJSON(val string) bool { var ( - valid bool = !json.Valid([]byte(val)) + valid = !json.Valid([]byte(val)) creds map[string]string err error ) diff --git a/pkg/collect.go b/pkg/collect.go index 31288fc..40ec851 100644 --- a/pkg/collect.go +++ b/pkg/collect.go @@ -81,7 +81,7 @@ func CollectInventory(assets *[]RemoteAsset, params *CollectParams, localStore s } certPool := x509.NewCertPool() certPool.AppendCertsFromPEM(cacert) - smdClient.Client.Transport = &http.Transport{ + smdClient.Transport = &http.Transport{ TLSClientConfig: &tls.Config{ RootCAs: certPool, InsecureSkipVerify: true, diff --git a/tests/compatibility_test.go b/tests/compatibility_test.go index dfcc5e5..f428f6a 100644 --- a/tests/compatibility_test.go +++ b/tests/compatibility_test.go @@ -78,7 +78,7 @@ func TestRedfishV1ServiceRootAvailability(t *testing.T) { // Simple test to ensure an expected Redfish version minimum requirement. func TestRedfishV1Version(t *testing.T) { var ( - url string = fmt.Sprintf("%s/redfish/v1/", *host) + url = fmt.Sprintf("%s/redfish/v1/", *host) body client.HTTPBody = []byte{} headers client.HTTPHeader = map[string]string{} testClient = &http.Client{