From 2cb4088456eaa845d6e89eeb69fb57d565a72cc2 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 1 Jul 2022 14:37:38 +0800 Subject: [PATCH] ignore AddError return error --- callbacks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callbacks.go b/callbacks.go index 1b4e58ea..f835e504 100644 --- a/callbacks.go +++ b/callbacks.go @@ -91,7 +91,7 @@ func (p *processor) Begin(tx *DB, opt *sql.TxOptions) *DB { } if err != nil { - tx.AddError(err) + _ = tx.AddError(err) } return tx