Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh committed Jun 2, 2024
1 parent 42c7f7b commit 4edeae8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions internal/exec/describe_affected_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1440,20 +1440,16 @@ func processIncludedInDependenciesForAffected(affected *[]schema.Affected, stack

a := &(*affected)[i]

if a.StackSlug == stackSlug {
return true
}

if len(a.Dependents) > 0 {
return processIncludedInDependenciesForDependents(&a.Dependents, stackSlug)
}
}
return false
}

func processIncludedInDependenciesForDependents(dependent *[]schema.Dependent, stackSlug string) bool {
for i := 0; i < len(*dependent); i++ {
d := &(*dependent)[i]
func processIncludedInDependenciesForDependents(dependents *[]schema.Dependent, stackSlug string) bool {
for i := 0; i < len(*dependents); i++ {
d := &(*dependents)[i]

if d.StackSlug == stackSlug {
return true
Expand Down

0 comments on commit 4edeae8

Please sign in to comment.