Skip to content

Commit

Permalink
Close sqliteDB but do not set to nil (#20)
Browse files Browse the repository at this point in the history
Close sqliteDB but do not set to nil, we use closed variable to test if it open
  • Loading branch information
torcolvin authored Nov 29, 2023
1 parent 5c7f6a7 commit a2dc991
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion bucket_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func (bucket *Bucket) _closeSqliteDB() {
}
if bucket.sqliteDB != nil {
bucket.sqliteDB.Close()
bucket.sqliteDB = nil
bucket.collections = nil
}
}
Expand Down

0 comments on commit a2dc991

Please sign in to comment.