Skip to content

Commit 3cb9953

Browse files
PeterFeichtjackc
authored andcommitted
pgxpool: Make BeginTx success case clearer
1 parent 91c9e84 commit 3cb9953

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pgxpool/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ func (p *Pool) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, er
680680
return nil, err
681681
}
682682

683-
return &Tx{t: t, c: c}, err
683+
return &Tx{t: t, c: c}, nil
684684
}
685685

686686
func (p *Pool) BeginFunc(ctx context.Context, f func(pgx.Tx) error) error {

0 commit comments

Comments
 (0)