Skip to content

Commit

Permalink
changed logic on repositories_detailed (#2248)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan <and05245@d.umn.edu>
  • Loading branch information
n47h4n12 and Nathan committed May 3, 2024
1 parent 06d3a26 commit e0f89c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github/data_source_github_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ func dataSourceGithubTeamRead(d *schema.ResourceData, meta interface{}) error {
}
}

repositories_detailed = make([]interface{}, 0, resultsPerPage) //removed this from the loop

for {
repository, resp, err := client.Teams.ListTeamReposByID(ctx, orgId, team.GetID(), &options.ListOptions)
if err != nil {
return err
}

repositories_detailed = make([]interface{}, 0, len(repository))

for _, v := range repository {
repositories = append(repositories, v.GetName())
repositories_detailed = append(repositories_detailed, map[string]interface{}{
Expand Down

0 comments on commit e0f89c3

Please sign in to comment.