From 7318b054740b9e2247b9b58319acfcaf329c7027 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 4 Jul 2023 19:15:10 +0000 Subject: [PATCH] Release 0.0.17 --- attempts_client.go | 2 +- rulesets_client.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/attempts_client.go b/attempts_client.go index a05f300..ec239ff 100644 --- a/attempts_client.go +++ b/attempts_client.go @@ -141,7 +141,7 @@ func (a *attemptsClient) GetAttempt(ctx context.Context, id string) (*EventAttem return apiError } - var response EventAttempt + response := new(EventAttempt) if err := core.DoRequest( ctx, a.httpClient, diff --git a/rulesets_client.go b/rulesets_client.go index 0758a85..19237fd 100644 --- a/rulesets_client.go +++ b/rulesets_client.go @@ -165,7 +165,7 @@ func (r *rulesetsClient) CreateRuleset(ctx context.Context, request *CreateRules return apiError } - var response Ruleset + response := new(Ruleset) if err := core.DoRequest( ctx, r.httpClient, @@ -214,7 +214,7 @@ func (r *rulesetsClient) UpsertRuleset(ctx context.Context, request *UpsertRules return apiError } - var response Ruleset + response := new(Ruleset) if err := core.DoRequest( ctx, r.httpClient, @@ -256,7 +256,7 @@ func (r *rulesetsClient) GetRuleset(ctx context.Context, id string) (*Ruleset, e return apiError } - var response Ruleset + response := new(Ruleset) if err := core.DoRequest( ctx, r.httpClient, @@ -312,7 +312,7 @@ func (r *rulesetsClient) UpdateRuleset(ctx context.Context, id string, request * return apiError } - var response Ruleset + response := new(Ruleset) if err := core.DoRequest( ctx, r.httpClient, @@ -354,7 +354,7 @@ func (r *rulesetsClient) ArchiveRuleset(ctx context.Context, id string) (*Rulese return apiError } - var response Ruleset + response := new(Ruleset) if err := core.DoRequest( ctx, r.httpClient, @@ -396,7 +396,7 @@ func (r *rulesetsClient) UnarchiveRuleset(ctx context.Context, id string) (*Rule return apiError } - var response Ruleset + response := new(Ruleset) if err := core.DoRequest( ctx, r.httpClient,