Skip to content

Commit

Permalink
Linter adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fbudzynski committed Sep 30, 2024
1 parent d3e54db commit 0e18136
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/acceptance/helpers/secret_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (c *SecretClient) CreateWithOAuthClientCredentialsFlow(t *testing.T, id sdk
t.Helper()
ctx := context.Background()
request := sdk.NewCreateWithOAuthClientCredentialsFlowSecretRequest(id, apiIntegration).
WithOauthScopes(sdk.OauthScopesListRequest{oauthScopes})
WithOauthScopes(sdk.OauthScopesListRequest{OauthScopesList: oauthScopes})

err := c.client().CreateWithOAuthClientCredentialsFlow(ctx, request)
require.NoError(t, err)
Expand Down
3 changes: 0 additions & 3 deletions pkg/sdk/secrets_impl_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ func (r *CreateWithOAuthClientCredentialsFlowSecretRequest) toOpts() *CreateWith
}

if r.OauthScopes != nil {

opts.OauthScopes = &OauthScopesList{
OauthScopesList: r.OauthScopes.OauthScopesList,
}

}

return opts
Expand Down Expand Up @@ -148,7 +146,6 @@ func (r *AlterSecretRequest) toOpts() *AlterSecretOptions {
opts.Set.SetForOAuthClientCredentialsFlow.OauthScopes = &OauthScopesList{
OauthScopesList: r.Set.SetForOAuthClientCredentialsFlow.OauthScopes.OauthScopesList,
}

}
}

Expand Down

0 comments on commit 0e18136

Please sign in to comment.