diff options
Diffstat (limited to 'src/lib/os/env.go')
| -rw-r--r-- | src/lib/os/env.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/os/env.go b/src/lib/os/env.go index 69af22382..e7df309e0 100644 --- a/src/lib/os/env.go +++ b/src/lib/os/env.go @@ -31,7 +31,7 @@ func copyenv() { // Getenv retrieves the value of the environment variable named by the key. // It returns the value and an error, if any. -func Getenv(key string) (value string, err *Error) { +func Getenv(key string) (value string, err Error) { once.Do(copyenv); if len(key) == 0 { @@ -46,7 +46,7 @@ func Getenv(key string) (value string, err *Error) { // Setenv sets the value of the environment variable named by the key. // It returns an Error, if any. -func Setenv(key, value string) *Error { +func Setenv(key, value string) Error { once.Do(copyenv); if len(key) == 0 { |
