From 273fccd908655ef5cda9c00279dcd51437be53f6 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:09:14 -0700 Subject: [PATCH] Check user and teams nil state instead of length --- api/queries_pr.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/queries_pr.go b/api/queries_pr.go index 7d7422951..de98c661f 100644 --- a/api/queries_pr.go +++ b/api/queries_pr.go @@ -638,10 +638,10 @@ func AddPullRequestReviews(client *Client, repo ghrepo.Interface, prNumber int, } // The API requires empty arrays instead of null values - if len(users) == 0 { + if users == nil { users = []string{} } - if len(teams) == 0 { + if teams == nil { teams = []string{} } @@ -673,10 +673,10 @@ func RemovePullRequestReviews(client *Client, repo ghrepo.Interface, prNumber in } // The API requires empty arrays instead of null values - if len(users) == 0 { + if users == nil { users = []string{} } - if len(teams) == 0 { + if teams == nil { teams = []string{} }