Fix error in config
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user