mirror of
https://github.com/onyx-and-iris/gignore.git
synced 2025-04-22 13:33:54 +01:00
test against empty string
Some checks are pending
CI / Lint (push) Waiting to run
Some checks are pending
CI / Lint (push) Waiting to run
This commit is contained in:
parent
7ada4e9328
commit
a3c2d2cfbf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user