diff --git a/config/config.go b/config/config.go index c8d89a9..916bc9a 100644 --- a/config/config.go +++ b/config/config.go @@ -101,7 +101,7 @@ func FromDefaultLocations() (*Config, error) { "ezshare.toml", } userConfigDir, err := os.UserConfigDir() - if err != nil { + if err == nil { defaultLocations = append(defaultLocations, filepath.Join(userConfigDir, "ezshare", "ezshare.toml")) }