pgxpool: Make BeginTx success case clearer

pull/1278/head
Peter Feichtinger 2022-08-03 09:22:13 +02:00 committed by Jack Christensen
parent 91c9e841e1
commit 3cb99532f5
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ func (p *Pool) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, er
return nil, err
}
return &Tx{t: t, c: c}, err
return &Tx{t: t, c: c}, nil
}
func (p *Pool) BeginFunc(ctx context.Context, f func(pgx.Tx) error) error {