From ea652996f41d6fc32e14b10faead31cc6465e9fd Mon Sep 17 00:00:00 2001 From: Amelia Wheeler Date: Thu, 26 Dec 2024 13:03:11 -0500 Subject: [PATCH] gofumpt new code --- internal/services/resourcegraph/client/client.go | 1 - internal/services/resourcegraph/registration.go | 4 +--- .../services/resourcegraph/resource_graph_query_resource.go | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/services/resourcegraph/client/client.go b/internal/services/resourcegraph/client/client.go index 1d5c262838f3..c976bae6571c 100644 --- a/internal/services/resourcegraph/client/client.go +++ b/internal/services/resourcegraph/client/client.go @@ -21,7 +21,6 @@ type Client struct { } func NewClient(o *common.ClientOptions) (*Client, error) { - graphQueryClient, err := graphquery.NewGraphQueryClientWithBaseURI(o.Environment.ResourceManager) if err != nil { return nil, fmt.Errorf("building Providers client: %+v", err) diff --git a/internal/services/resourcegraph/registration.go b/internal/services/resourcegraph/registration.go index 3247e9679b47..bd03030f5ec4 100644 --- a/internal/services/resourcegraph/registration.go +++ b/internal/services/resourcegraph/registration.go @@ -6,9 +6,7 @@ import ( type Registration struct{} -var ( - _ sdk.TypedServiceRegistration = Registration{} -) +var _ sdk.TypedServiceRegistration = Registration{} func (r Registration) DataSources() []sdk.DataSource { return []sdk.DataSource{} diff --git a/internal/services/resourcegraph/resource_graph_query_resource.go b/internal/services/resourcegraph/resource_graph_query_resource.go index ae2d159ba9da..205874badd44 100644 --- a/internal/services/resourcegraph/resource_graph_query_resource.go +++ b/internal/services/resourcegraph/resource_graph_query_resource.go @@ -122,7 +122,6 @@ func (r ResourceGraphQueryResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.ResourceGraph.ResourceGraphQueryClient id, err := graphquery.ParseQueryID(metadata.ResourceData.Id())