mirror of
https://github.com/sbrow/envr.git
synced 2026-02-27 20:11:45 -05:00
refactor(db): Removed the need to pass CloseMode to Db.Close.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user