From 57ff815c3976e741361a2c64812cdd84b90066f8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 27 Jan 2025 10:53:14 -0700 Subject: [PATCH] chore: fix golangci-lint violation --- resources/route53-profile-association.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/route53-profile-association.go b/resources/route53-profile-association.go index 851b7a44..bc4c2ba6 100644 --- a/resources/route53-profile-association.go +++ b/resources/route53-profile-association.go @@ -3,7 +3,6 @@ package resources import ( "context" "errors" - "fmt" "time" "github.com/gotidy/ptr" @@ -55,7 +54,7 @@ func (l *Route53ProfileAssociationLister) List(ctx context.Context, o interface{ OwnerID: p.OwnerId, ProfileID: p.ProfileId, ResourceID: p.ResourceId, - Status: ptr.String(fmt.Sprintf("%s", p.Status)), + Status: ptr.String(string(p.Status)), CreationTime: p.CreationTime, ModificationTime: p.ModificationTime, }) @@ -128,7 +127,7 @@ func (r *Route53ProfileAssociation) HandleWait(ctx context.Context) error { return err } - currentStatus := fmt.Sprintf("%s", p.ProfileAssociation.Status) + currentStatus := string(p.ProfileAssociation.Status) r.Status = ptr.String(currentStatus)