pgxpool: Make BeginTx success case clearer
This commit is contained in:
committed by
Jack Christensen
parent
91c9e841e1
commit
3cb99532f5
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user