Skip to content

Commit

Permalink
refactor(resource-explorer2-index): standardization
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Dec 23, 2024
1 parent c2f936c commit e457ef3
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package resources

import (
"context"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/resourceexplorer2"
"github.com/ekristen/aws-nuke/v3/pkg/nuke"
Expand Down Expand Up @@ -61,14 +60,14 @@ func (l *ResourceExplorer2IndexLister) List(_ context.Context, o interface{}) ([
return resources, nil
}

func (f *ResourceExplorer2Index) Remove(_ context.Context) error {
_, err := f.svc.DeleteIndex(&resourceexplorer2.DeleteIndexInput{
Arn: f.indexArn,
func (r *ResourceExplorer2Index) Remove(_ context.Context) error {
_, err := r.svc.DeleteIndex(&resourceexplorer2.DeleteIndexInput{
Arn: r.indexArn,
})

return err
}

func (f *ResourceExplorer2Index) String() string {
return *f.indexArn
func (r *ResourceExplorer2Index) String() string {
return *r.indexArn
}

0 comments on commit e457ef3

Please # to comment.