mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-11 21:49:13 +00:00
Fix.
This commit is contained in:
4
tx.go
4
tx.go
@@ -69,7 +69,7 @@ func (tx Tx) End(errp *error) {
|
||||
defer panic(recovered)
|
||||
}
|
||||
|
||||
if (errp == nil || *errp == nil) && recovered == nil {
|
||||
if *errp == nil && recovered == nil {
|
||||
// Success path.
|
||||
if tx.c.GetAutocommit() { // There is nothing to commit.
|
||||
return
|
||||
@@ -155,7 +155,7 @@ func (s Savepoint) Release(errp *error) {
|
||||
defer panic(recovered)
|
||||
}
|
||||
|
||||
if (errp == nil || *errp == nil) && recovered == nil {
|
||||
if *errp == nil && recovered == nil {
|
||||
// Success path.
|
||||
if s.c.GetAutocommit() { // There is nothing to commit.
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user