Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Devtools committed Nov 21, 2024
1 parent b4f334d commit dc38c17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testsupport/cleanup/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,16 @@ func (c *cleanTask) verifyTierTemplateRevisionsDeleted(isNsTemplateTier bool, ns
if err := c.client.List(context.TODO(), ttrs,
client.InNamespace(nsTemplateTier.GetNamespace()),
client.MatchingLabels{toolchainv1alpha1.TierLabelKey: nsTemplateTier.GetName()}); err != nil {
c.t.Logf("problem with getting the ttrs for tier %s: %s", nsTemplateTier, err)
c.t.Logf("problem with getting the ttrs for tier %s: %s", nsTemplateTier.GetName(), err)
return false, err
}
if len(ttrs.Items) == 0 {
c.t.Logf("the NSTemplateTier %s doesn't have TTRs", nsTemplateTier.GetName())
return true, nil
}
if delete {
for _, ttr := range ttrs.Items {
for i := range ttrs.Items {
ttr := ttrs.Items[i]
c.t.Logf("deleting also the related TTR %s", ttr.GetName())
if err := c.client.Delete(context.TODO(), &ttr, propagationPolicyOpts); err != nil {
if errors.IsNotFound(err) {
Expand Down

0 comments on commit dc38c17

Please sign in to comment.