From dc105ce7a462eed026bf65533700ac28fea4ead7 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Mon, 26 Jan 2026 13:02:40 -0700 Subject: [PATCH] Simplify variables map in SuggestedAssignableActors Refactored the construction of the variables map by directly assigning the 'query' key, removing the conditional logic for nil assignment. --- api/queries_pr.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/api/queries_pr.go b/api/queries_pr.go index 11502071d..077d316e9 100644 --- a/api/queries_pr.go +++ b/api/queries_pr.go @@ -748,12 +748,8 @@ func SuggestedAssignableActors(client *Client, repo ghrepo.Interface, assignable } variables := map[string]interface{}{ - "id": githubv4.ID(assignableID), - } - if query != "" { - variables["query"] = githubv4.String(query) - } else { - variables["query"] = (*githubv4.String)(nil) + "id": githubv4.ID(assignableID), + "query": githubv4.String(query), } var result responseData