Fix error in config

This commit is contained in:
Torjus Håkestad 2021-12-04 04:13:08 +01:00
parent 21c0f126dd
commit 31c3a6740a

View File

@ -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"))
}