Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Devtools committed Jan 8, 2025
1 parent 42d877e commit bdf02b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tiertemplaterevision/assertion.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func (a *Assertion) ExistsFor(tierName string, tierTemplateRef ...string) *Asser
}

func (a *Assertion) ForEach(assertionFunc func(ttr *toolchainv1alpha1.TierTemplateRevision)) *Assertion {
for _, ttr := range a.ttrs {
assertionFunc(&ttr)
for i := range a.ttrs {
assertionFunc(&a.ttrs[i])
}
return a
}

0 comments on commit bdf02b3

Please sign in to comment.