refactor(db): Removed the need to pass CloseMode to Db.Close.

This commit is contained in:
2025-11-07 14:40:57 -05:00
parent 1a3172dc6f
commit 5eaf691dcd
9 changed files with 21 additions and 22 deletions

View File

@@ -38,7 +38,7 @@ var checkCmd = &cobra.Command{
if err != nil {
return fmt.Errorf("failed to open database: %w", err)
}
defer db.Close(app.ReadOnly)
defer db.Close()
// Check if the path is a file or directory
info, err := os.Stat(absPath)