Skip to content

Commit

Permalink
fix: don't fail when $HOME isn't defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Oct 3, 2023
1 parent e09993e commit 6e19db2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/core/ini.go
Expand Up @@ -249,9 +249,9 @@ func loadConfig(names []string) (string, error) {
cwd = parent
}

homeDir, err := os.UserHomeDir()
if err != nil {
return "", err
homeDir, _ := os.UserHomeDir()
if homeDir == "" {
return "", nil
}

for _, name := range names {
Expand Down

0 comments on commit 6e19db2

Please sign in to comment.