mirror of
https://github.com/onyx-and-iris/gignore.git
synced 2025-03-31 10:51:19 +01:00
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