From ae4ebf5af02216a1b8b8ed1140f45cd60de80ca3 Mon Sep 17 00:00:00 2001 From: Nicolas Maupu Date: Sun, 22 Dec 2024 12:25:41 +0100 Subject: [PATCH] lint --- provider/ovh/ovh.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/provider/ovh/ovh.go b/provider/ovh/ovh.go index 50a508c3b1..cb7ac1f2f0 100644 --- a/provider/ovh/ovh.go +++ b/provider/ovh/ovh.go @@ -161,12 +161,10 @@ func (p *OVHProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) ( }() allChanges := make([]ovhChange, 0, countTargets(changes.Create, changes.UpdateNew, changes.UpdateOld, changes.Delete)) - - - allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Create, zones, records)) - allChanges = append(allChanges, newOvhChange(ovhCreate, changes.UpdateNew, zones, records)) - allChanges = append(allChanges, newOvhChange(ovhCreate, changes.UpdateOld, zones, records)) - allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Delete, zones, records)) + allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Create, zones, records)...) + allChanges = append(allChanges, newOvhChange(ovhCreate, changes.UpdateNew, zones, records)...) + allChanges = append(allChanges, newOvhChange(ovhCreate, changes.UpdateOld, zones, records)...) + allChanges = append(allChanges, newOvhChange(ovhCreate, changes.Delete, zones, records)...) log.Infof("OVH: %d changes will be done", len(allChanges))