chore: code style

This commit is contained in:
a631807682 2023-02-15 15:37:47 +08:00
parent f43c523548
commit d093b4b06a
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB

View File

@ -619,7 +619,6 @@ func (db *DB) Transaction(fc func(tx *DB) error, opts ...*sql.TxOptions) (err er
// nested transaction
if !db.DisableNestedTransaction && (!db.PrepareStmt ||
(db.PrepareStmt && !db.DisablePrepareNestedTransaction)) {
err = db.SavePoint(fmt.Sprintf("sp%p", fc)).Error
if err != nil {
return