aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/data/get.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/data/get.go b/pkg/data/get.go
index 968789b..09d4587 100644
--- a/pkg/data/get.go
+++ b/pkg/data/get.go
@@ -99,7 +99,8 @@ func (f *Fill) document(ctx context.Context) error {
// pass nil rows to get all documents in the database.
func (f *FillMany) documents(ctx context.Context, rows *sql.Rows) error {
if rows == nil {
- rows, err := f.Db.QueryContext(ctx, `
+ var err error
+ rows, err = f.Db.QueryContext(ctx, `
SELECT id, path, title, date, fileTime, meta
FROM Documents
`)