Skip to content

Commit

Permalink
minor udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
z0rr0 committed Jul 30, 2023
1 parent dd762ec commit 96032dd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,12 @@ func defaultDirectories() (string, string, error) {
)

if configDir, err = os.UserConfigDir(); err != nil {
return "", "", err
return "", "", fmt.Errorf("user config dir: %v", err)
}
configDir = filepath.Join(configDir, appFolder)

if cacheDir, err = os.UserCacheDir(); err != nil {
return "", "", err
return "", "", fmt.Errorf("user cache dir: %v", err)
}

return configDir, filepath.Join(cacheDir, appFolder), nil
return filepath.Join(configDir, appFolder), filepath.Join(cacheDir, appFolder), nil
}

0 comments on commit 96032dd

Please sign in to comment.