2
0

pgxpool: Make BeginTx success case clearer

This commit is contained in:
Peter Feichtinger
2022-08-03 09:22:13 +02:00
committed by Jack Christensen
parent 91c9e841e1
commit 3cb99532f5
+1 -1
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 {