From 2c19f59cf507a011cdb5d37646c412b6a3627cd7 Mon Sep 17 00:00:00 2001 From: Dennis Haney Date: Wed, 30 Oct 2024 19:52:03 +0700 Subject: [PATCH] fix: lint --- plan/plan.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plan/plan.go b/plan/plan.go index bd0ec209e..6124b7640 100644 --- a/plan/plan.go +++ b/plan/plan.go @@ -240,11 +240,9 @@ func (p *Plan) Calculate() *Plan { if ownersMatch { changes.Create = append(changes.Create, creates...) - } else { - if log.GetLevel() == log.DebugLevel { - for _, current := range row.current { - log.Debugf(`Skipping endpoint %v because owner id does not match for one or more items to create, found: "%s", required: "%s"`, current, current.Labels[endpoint.OwnerLabelKey], p.OwnerID) - } + } else if log.GetLevel() == log.DebugLevel { + for _, current := range row.current { + log.Debugf(`Skipping endpoint %v because owner id does not match for one or more items to create, found: "%s", required: "%s"`, current, current.Labels[endpoint.OwnerLabelKey], p.OwnerID) } } }