about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
authorAlan Pearce2025-01-24 13:10:58 +0100
committerAlan Pearce2025-01-24 13:10:58 +0100
commit2d6315fa9386aaecbc1a7fc6a7ffcceb0ae09c35 (patch)
tree4b46101cd09088d8a19b21989776e6cc1644e416 /internal
parent61ed2c479fcd8b7be54dc30cc1a7f0b0d5ddc852 (diff)
downloadsearchix-2d6315fa9386aaecbc1a7fc6a7ffcceb0ae09c35.tar.lz
searchix-2d6315fa9386aaecbc1a7fc6a7ffcceb0ae09c35.tar.zst
searchix-2d6315fa9386aaecbc1a7fc6a7ffcceb0ae09c35.zip
fix: build failure (bad rebase)
Diffstat (limited to 'internal')
-rw-r--r--internal/programs/programs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/programs/programs.go b/internal/programs/programs.go
index dc508b9..5088444 100644
--- a/internal/programs/programs.go
+++ b/internal/programs/programs.go
@@ -54,7 +54,8 @@ func Instantiate(
 }
 
 func (p *DB) Open() error {
-	db, err := sql.Open("sqlite", p.Path)
+	var err error
+	p.db, err = sql.Open("sqlite", p.Path)
 	if err != nil {
 		return errors.WithMessage(err, "failed to open sqlite database")
 	}