From d093b4b06af9436675e390b26a863b8bde6533d3 Mon Sep 17 00:00:00 2001 From: a631807682 <631807682@qq.com> Date: Wed, 15 Feb 2023 15:37:47 +0800 Subject: [PATCH] chore: code style --- finisher_api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/finisher_api.go b/finisher_api.go index c5eecda2..982277d0 100644 --- a/finisher_api.go +++ b/finisher_api.go @@ -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