From 4dd7729e7bbfca77fb70f6da015cc3fdfc38a1ff Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 21:01:43 -0600 Subject: [PATCH] chore(golangci-lint): fix violations --- resources/elbv2-listenerrule.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/elbv2-listenerrule.go b/resources/elbv2-listenerrule.go index c1a1924b..5f01fd3f 100644 --- a/resources/elbv2-listenerrule.go +++ b/resources/elbv2-listenerrule.go @@ -40,9 +40,8 @@ func (l *ELBv2ListenerRuleLister) List(_ context.Context, o interface{}) ([]reso err := svc.DescribeLoadBalancersPages( nil, func(page *elbv2.DescribeLoadBalancersOutput, lastPage bool) bool { - for _, elbv2lb := range page.LoadBalancers { - lbs = append(lbs, elbv2lb) - } + lbs = append(lbs, page.LoadBalancers...) + return !lastPage }, )