fix bug when removing all PR reviwers

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-05-12 15:06:11 +01:00
parent 7ceca4534d
commit 4985d0ff44
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -283,8 +283,7 @@ func updatePullRequestReviews(httpClient *http.Client, repo ghrepo.Interface, id
if err != nil {
return err
}
if (userIds == nil || len(*userIds) == 0) &&
(teamIds == nil || len(*teamIds) == 0) {
if userIds == nil && teamIds == nil {
return nil
}
union := githubv4.Boolean(false)