From e87b2184a29296eeb3dbef4aaf2166ebcb43c606 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Tue, 15 Oct 2024 15:25:42 -0600 Subject: [PATCH] cache: refactor after updating util --- internal/cache/sqlite/sqlite.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/cache/sqlite/sqlite.go b/internal/cache/sqlite/sqlite.go index 7a04978..594fd92 100644 --- a/internal/cache/sqlite/sqlite.go +++ b/internal/cache/sqlite/sqlite.go @@ -85,11 +85,9 @@ func DeleteScannedAssets(path string, results ...magellan.RemoteAsset) error { func GetScannedAssets(path string) ([]magellan.RemoteAsset, error) { // check if path exists first to prevent creating the database - exists, err := util.PathExists(path) + _, exists := util.PathExists(path) if !exists { return nil, fmt.Errorf("no file found") - } else if err != nil { - return nil, err } // now check if the file is the SQLite database