From 4985d0ff44e8f45caf1c77e0551077bfd4a9c893 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Mon, 12 May 2025 15:06:11 +0100 Subject: [PATCH] fix bug when removing all PR reviwers Signed-off-by: Babak K. Shandiz --- pkg/cmd/pr/edit/edit.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cmd/pr/edit/edit.go b/pkg/cmd/pr/edit/edit.go index 0428d13d6..cc5eefb9e 100644 --- a/pkg/cmd/pr/edit/edit.go +++ b/pkg/cmd/pr/edit/edit.go @@ -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)