This commit is contained in:
Nuno Cruces
2023-04-21 13:33:24 +01:00
parent f360c77a78
commit 7e6d178122

4
tx.go
View File

@@ -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