Refactor variable names in ListSessionsForViewer

Renamed 'Sessions' to 'result' for clarity and consistency in the ListSessionsForViewer method when hydrating session pull requests.
This commit is contained in:
Kynan Ware 2025-08-29 14:12:33 -06:00
parent 48012063df
commit 13c293f4cf

View file

@ -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