From 5b9c1ed1ef9b7b772712867b9f95d2c43051de16 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 28 Apr 2024 18:30:25 -0400 Subject: [PATCH] Fixed DataDirs, ConfigDirs --- basedir/basedir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basedir/basedir.go b/basedir/basedir.go index 0f0a646..67b0c7c 100644 --- a/basedir/basedir.go +++ b/basedir/basedir.go @@ -206,7 +206,7 @@ func listDefault (list string, defaul ...string) []string { index := 0 for _, dir := range envDirs { - if Valid(dir) != nil { + if Valid(dir) == nil { dirs[index] = dir index ++ }