From 13c293f4cfb08f8af46936d5d3469969005b1fa8 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Fri, 29 Aug 2025 14:12:33 -0600 Subject: [PATCH] Refactor variable names in ListSessionsForViewer Renamed 'Sessions' to 'result' for clarity and consistency in the ListSessionsForViewer method when hydrating session pull requests. --- pkg/cmd/agent-task/capi/sessions.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/agent-task/capi/sessions.go b/pkg/cmd/agent-task/capi/sessions.go index 14e03b0c8..20eccaf41 100644 --- a/pkg/cmd/agent-task/capi/sessions.go +++ b/pkg/cmd/agent-task/capi/sessions.go @@ -105,13 +105,13 @@ func (c *CAPIClient) ListSessionsForViewer(ctx context.Context, limit int) ([]*S sessions = sessions[:limit] } - // Hydrate the Sessions with pull request data. - Sessions, err := c.hydrateSessionPullRequests(sessions) + // Hydrate the result with pull request data. + result, err := c.hydrateSessionPullRequests(sessions) if err != nil { return nil, err } - return Sessions, nil + return result, nil } // hydrateSessionPullRequests hydrates pull request information in sessions