Fix error in config
This commit is contained in:
parent
21c0f126dd
commit
31c3a6740a
@ -101,7 +101,7 @@ func FromDefaultLocations() (*Config, error) {
|
|||||||
"ezshare.toml",
|
"ezshare.toml",
|
||||||
}
|
}
|
||||||
userConfigDir, err := os.UserConfigDir()
|
userConfigDir, err := os.UserConfigDir()
|
||||||
if err != nil {
|
if err == nil {
|
||||||
defaultLocations = append(defaultLocations, filepath.Join(userConfigDir, "ezshare", "ezshare.toml"))
|
defaultLocations = append(defaultLocations, filepath.Join(userConfigDir, "ezshare", "ezshare.toml"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user