fix: resolve noctx lint issues
This commit is contained in:
1 parent
4fe5227cbf
commit
c6c5aaf48e
2 files changed
+4
-3
No files matched your search
+1
-1
@@ -88,7 +88,7 @@ func NewTest(dsn string) (*Database, error) {
|
||||
}
|
||||
|
||||
// Item 9: Enable foreign keys
|
||||
if _, err := d.Exec("PRAGMA foreign_keys = ON"); err != nil {
|
||||
if _, err := d.ExecContext(context.Background(), "PRAGMA foreign_keys = ON"); err != nil {
|
||||
_ = d.Close()
|
||||
|
||||
return nil, fmt.Errorf("enable foreign keys: %w", err)
|
||||
|
||||
Reference in new issue
Block a user