From 31c3a6740a3dd474bb3173c8af5bc08aff11dc13 Mon Sep 17 00:00:00 2001 From: = Date: Sat, 4 Dec 2021 04:13:08 +0100 Subject: [PATCH] Fix error in config --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) }