lint: apply changes from golint

This commit is contained in:
David Allen 2025-03-25 14:54:09 -06:00
parent 0c53fa7495
commit 667fd39213
Signed by: towk
GPG key ID: 0430CDBE22619155
3 changed files with 4 additions and 4 deletions

View file

@ -60,7 +60,7 @@ var secretsStoreCmd = &cobra.Command{
Short: "Stores the given string value under secretID.", Short: "Stores the given string value under secretID.",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
var ( var (
secretID string = args[0] secretID = args[0]
secretValue string secretValue string
store secrets.SecretStore store secrets.SecretStore
inputFileBytes []byte inputFileBytes []byte
@ -163,7 +163,7 @@ var secretsStoreCmd = &cobra.Command{
func isValidCredsJSON(val string) bool { func isValidCredsJSON(val string) bool {
var ( var (
valid bool = !json.Valid([]byte(val)) valid = !json.Valid([]byte(val))
creds map[string]string creds map[string]string
err error err error
) )

View file

@ -81,7 +81,7 @@ func CollectInventory(assets *[]RemoteAsset, params *CollectParams, localStore s
} }
certPool := x509.NewCertPool() certPool := x509.NewCertPool()
certPool.AppendCertsFromPEM(cacert) certPool.AppendCertsFromPEM(cacert)
smdClient.Client.Transport = &http.Transport{ smdClient.Transport = &http.Transport{
TLSClientConfig: &tls.Config{ TLSClientConfig: &tls.Config{
RootCAs: certPool, RootCAs: certPool,
InsecureSkipVerify: true, InsecureSkipVerify: true,

View file

@ -78,7 +78,7 @@ func TestRedfishV1ServiceRootAvailability(t *testing.T) {
// Simple test to ensure an expected Redfish version minimum requirement. // Simple test to ensure an expected Redfish version minimum requirement.
func TestRedfishV1Version(t *testing.T) { func TestRedfishV1Version(t *testing.T) {
var ( var (
url string = fmt.Sprintf("%s/redfish/v1/", *host) url = fmt.Sprintf("%s/redfish/v1/", *host)
body client.HTTPBody = []byte{} body client.HTTPBody = []byte{}
headers client.HTTPHeader = map[string]string{} headers client.HTTPHeader = map[string]string{}
testClient = &http.Client{ testClient = &http.Client{