Skip to content

Commit

Permalink
ignore AddError return error
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfuze committed Jul 1, 2022
1 parent 93f28bc commit 2cb4088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cb4088

Please sign in to comment.