From 4c44f3be2f79a066c49b860131405d55b5b771ac Mon Sep 17 00:00:00 2001 From: JasonTheDeveloper Date: Tue, 3 Sep 2024 13:27:59 +1000 Subject: [PATCH] refactor(dir): remove userDir Co-authored-by: Shiwei Zhang Signed-off-by: JasonTheDeveloper Signed-off-by: Jason --- dir/path.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dir/path.go b/dir/path.go index e6285fb9..17cc9c2f 100644 --- a/dir/path.go +++ b/dir/path.go @@ -85,7 +85,8 @@ func userConfigDirPath() string { userDir, err := userConfigDir() if err != nil { // fallback to current directory - userDir = "." + UserConfigDir = "." + notation + return UserConfigDir UserConfigDir = "." + notation return UserConfigDir }