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:
parent
48012063df
commit
13c293f4cf
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue