Skip to content

Commit

Permalink
minor code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed May 16, 2024
1 parent 937b126 commit 38ed765
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boshupdate/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ func (a *Manager) listReleases(item GenericReleaseConfig) ([]*github.RepositoryR
if err != nil {
return res, err
}
for _, d := range data {
res = append(res, d)
}
res = append(res, data...)
if resp.NextPage == 0 {
return res, nil
}
Expand Down

0 comments on commit 38ed765

Please sign in to comment.