Skip to content

Commit

Permalink
gofumpt new code
Browse files Browse the repository at this point in the history
  • Loading branch information
theonlyames committed Dec 26, 2024
1 parent de0cf80 commit ea65299
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion internal/services/resourcegraph/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions internal/services/resourcegraph/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ea65299

Please sign in to comment.