Update pkg/app/app.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Zubair Haque 2025-10-27 09:47:44 -04:00
parent 190946333d
commit bdc00a3064
1 changed files with 4 additions and 1 deletions

View File

@ -1987,8 +1987,11 @@ func (a *App) withNeeds(r *Run, c DAGConfig, includeDisabled bool, f func(*state
SkipNeeds: c.SkipNeeds(),
})
var selectedReleasesWithNeeds []state.ReleaseSpec
if err != nil {
return false, []error{err}
}
var selectedReleasesWithNeeds []state.ReleaseSpec
for _, rs := range batches {
for _, r := range rs {
selectedReleasesWithNeeds = append(selectedReleasesWithNeeds, r.ReleaseSpec)