diff options
Diffstat (limited to 'vendor/github.com/google/gops/internal/internal.go')
-rw-r--r-- | vendor/github.com/google/gops/internal/internal.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/google/gops/internal/internal.go b/vendor/github.com/google/gops/internal/internal.go index ec63f918..7fc162a6 100644 --- a/vendor/github.com/google/gops/internal/internal.go +++ b/vendor/github.com/google/gops/internal/internal.go @@ -22,8 +22,8 @@ func ConfigDir() (string, error) { return configDir, nil } - if osUserConfigDir := getOSUserConfigDir(); osUserConfigDir != "" { - return filepath.Join(osUserConfigDir, "gops"), nil + if userConfigDir, err := os.UserConfigDir(); err == nil { + return filepath.Join(userConfigDir, "gops"), nil } if runtime.GOOS == "windows" { |