fix bug when removing all PR reviwers
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
7ceca4534d
commit
4985d0ff44
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue