update env key param name

This commit is contained in:
Christopher Woodall
2023-05-14 17:56:59 -05:00
parent ec5028d3ef
commit ce732fe860

View File

@@ -13,7 +13,7 @@ import (
"github.com/ANG13T/SatIntel/cli" "github.com/ANG13T/SatIntel/cli"
) )
func setEnvironmentalVariable(env_key string) string { func setEnvironmentalVariable(envKey string) string {
reader := bufio.NewReader(os.Stdin) reader := bufio.NewReader(os.Stdin)
fmt.Printf("%s: ", envKey) fmt.Printf("%s: ", envKey)
input, err := reader.ReadString('\n') input, err := reader.ReadString('\n')
@@ -33,10 +33,10 @@ func setEnvironmentalVariable(env_key string) string {
} }
func checkEnvironmentalVariable(env_key string) { func checkEnvironmentalVariable(envKey string) {
_environmental_variable, found := os.LookupEnv(env_key) _, found := os.LookupEnv(envKey)
if !found { if !found {
_environmental_variable = setEnvironmentalVariable(env_key) setEnvironmentalVariable(envKey)
} }
} }