Skip to content

Commit

Permalink
add break for end the search early
Browse files Browse the repository at this point in the history
  • Loading branch information
intelligentfu8 committed Dec 18, 2024
1 parent 0ce94d9 commit 6b4f135
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func (dcgs *DisaggregatedComputeGroupsController) ClearResources(ctx context.Con
for _, cg := range ddc.Spec.ComputeGroups {
if cgs.UniqueId == cg.UniqueId {
eCGs = append(eCGs, ddc.Status.ComputeGroupStatuses[i])
break
}
}
}
Expand Down

0 comments on commit 6b4f135

Please sign in to comment.