Skip to content

Commit

Permalink
chore: fix golangci-lint violation
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Jan 27, 2025
1 parent 443eaca commit 57ff815
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources/route53-profile-association.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package resources
import (
"context"
"errors"
"fmt"
"time"

"github.com/gotidy/ptr"
Expand Down Expand Up @@ -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,
})
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 57ff815

Please sign in to comment.