Fix database presence check

This commit is contained in:
Elara 2023-01-11 18:31:57 -08:00
parent 2c1e11648e
commit 909b020089
1 changed files with 2 additions and 2 deletions

View File

@ -71,6 +71,6 @@ func init() {
DBPath = filepath.Join(CacheDir, "db")
_, err = os.ReadDir(DBPath)
DBPresent = err == nil
fi, err := os.Stat(DBPath)
DBPresent = err == nil && !fi.IsDir()
}