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"
)
func setEnvironmentalVariable(env_key string) string {
func setEnvironmentalVariable(envKey string) string {
reader := bufio.NewReader(os.Stdin)
fmt.Printf("%s: ", envKey)
input, err := reader.ReadString('\n')
@@ -33,10 +33,10 @@ func setEnvironmentalVariable(env_key string) string {
}
func checkEnvironmentalVariable(env_key string) {
_environmental_variable, found := os.LookupEnv(env_key)
func checkEnvironmentalVariable(envKey string) {
_, found := os.LookupEnv(envKey)
if !found {
_environmental_variable = setEnvironmentalVariable(env_key)
setEnvironmentalVariable(envKey)
}
}