Skip to content

Commit

Permalink
Fix bug for ctx usage (#26763)
Browse files Browse the repository at this point in the history
Fix #26684 
Backport #26762
  • Loading branch information
lunny authored Aug 28, 2023
1 parent 307ee2c commit a1cec41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/pull/review.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ func DismissApprovalReviews(ctx context.Context, doer *user_model.User, pull *is
return err
}

return db.WithTx(ctx, func(subCtx context.Context) error {
return db.WithTx(ctx, func(ctx context.Context) error {
for _, review := range reviews {
if err := issues_model.DismissReview(subCtx, review, true); err != nil {
if err := issues_model.DismissReview(ctx, review, true); err != nil {
return err
}

Expand Down

0 comments on commit a1cec41

Please sign in to comment.