test against empty string
Some checks are pending
CI / Lint (push) Waiting to run

This commit is contained in:
onyx-and-iris 2025-03-13 18:22:52 +00:00
parent 7ada4e9328
commit a3c2d2cfbf

View File

@ -4,7 +4,7 @@ import "os"
func getEnv(key, defaultValue string) string {
value := os.Getenv(key)
if len(value) == 0 {
if value == "" {
return defaultValue
}
return value