Skip to content

Commit

Permalink
snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Apr 5, 2023
1 parent 126362e commit 1b668b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ linters-settings:
- github\.com/twpayne/chezmoi/v2/pkg/chezmoi\.ActualStateEntry
- github\.com/twpayne/chezmoi/v2/pkg/chezmoi\.Encryption
- github\.com/twpayne/chezmoi/v2/pkg/chezmoi\.Format
- github\.com/twpayne/chezmoi/v2/pkg/chezmoi\.PersistentState
- github\.com/twpayne/chezmoi/v2/pkg/chezmoi\.SourceStateOrigin
- github\.com/twpayne/chezmoi/v2/pkg/chezmoi\.SourceStateEntry
- github\.com/twpayne/chezmoi/v2/pkg/chezmoi\.System
Expand Down
3 changes: 2 additions & 1 deletion pkg/chezmoi/sqlitepersistentstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql"
"errors"

_ "modernc.org/sqlite"
_ "modernc.org/sqlite" // Import pure Go SQLite driver
)

const (
Expand Down Expand Up @@ -136,6 +136,7 @@ func (s *SQLitePersistentState) forAll(fn func([]byte, []byte, []byte) error) er
if err != nil {
return err
}
defer rows.Close()
for rows.Next() {
var bucket, key, value []byte
if err := rows.Scan(&bucket, &key, &value); err != nil {
Expand Down

0 comments on commit 1b668b4

Please sign in to comment.