diff options
author | Andinus <andinus@nand.sh> | 2020-04-08 01:44:15 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-04-08 01:44:15 +0530 |
commit | 34adb3a7e676a43cd692b4da14398a7d1b0be822 (patch) | |
tree | 52d071f21eda3fdeb9768ecefb41df1c7ee551e8 /cmd/grus/env.go | |
parent | 47d22337b3a178b14e1cac287799f2c9dfb336e6 (diff) | |
download | grus-34adb3a7e676a43cd692b4da14398a7d1b0be822.tar.gz |
Prepare for next rewrite
Diffstat (limited to 'cmd/grus/env.go')
-rw-r--r-- | cmd/grus/env.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/cmd/grus/env.go b/cmd/grus/env.go deleted file mode 100644 index 4d72030..0000000 --- a/cmd/grus/env.go +++ /dev/null @@ -1,17 +0,0 @@ -package main - -import "os" - -// getEnv will check if the the key exists, if it does then it'll -// return the value otherwise it will return fallback string. -func getEnv(key, fallback string) string { - // We use os.LookupEnv instead of using os.GetEnv and checking - // if the length equals 0 because environment variable can be - // set and be of length 0. User could've set key="" which - // means the variable was set but the length is 0. - value, exists := os.LookupEnv(key) - if !exists { - value = fallback - } - return value -} |