Skip to content

Commit

Permalink
pgxpool: Make BeginTx success case clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterFeicht authored and jackc committed Aug 5, 2022
1 parent 91c9e84 commit 3cb9953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgxpool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3cb9953

Please sign in to comment.