aboutsummaryrefslogtreecommitdiff
path: root/internal/conf/computed.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/conf/computed.go')
-rw-r--r--internal/conf/computed.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/conf/computed.go b/internal/conf/computed.go
index 07a5a94c..64eb322d 100644
--- a/internal/conf/computed.go
+++ b/internal/conf/computed.go
@@ -99,8 +99,8 @@ var (
// string when environment variables are not set.
func HomeDir() string {
homeDirOnce.Do(func() {
- if !IsWindowsRuntime() {
- homeDir = os.Getenv("HOME")
+ homeDir = os.Getenv("HOME")
+ if homeDir != "" {
return
}