From bdf02b3909e7e8509ec04f92905de8deca8f0797 Mon Sep 17 00:00:00 2001 From: Devtools Date: Wed, 8 Jan 2025 16:32:34 +0100 Subject: [PATCH] fix linter --- test/tiertemplaterevision/assertion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tiertemplaterevision/assertion.go b/test/tiertemplaterevision/assertion.go index 61ef04361..2f3be463a 100644 --- a/test/tiertemplaterevision/assertion.go +++ b/test/tiertemplaterevision/assertion.go @@ -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 }