fix: lint

This commit is contained in:
Dennis Haney 2024-10-30 19:52:03 +07:00 committed by GitHub
parent 4238316c47
commit 2c19f59cf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}
}
}