Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSubiros committed Jan 30, 2023
1 parent 1a10fc4 commit f74a73d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sdk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func (cli *Client) Checker(ctx context.Context, check *health.CheckState) error
}

// PostFeedback sends the provided feedback model to the feedback API via a post call
func (c *Client) PostFeedback(ctx context.Context, feedback *models.Feedback, options Options) *sdkError.StatusError {
uri := fmt.Sprintf(FeedbackEndpoint, c.hcCli.URL)
func (cli *Client) PostFeedback(ctx context.Context, feedback *models.Feedback, options Options) *sdkError.StatusError {
uri := fmt.Sprintf(FeedbackEndpoint, cli.hcCli.URL)

buf := &bytes.Buffer{}
err := json.NewEncoder(buf).Encode(feedback)
Expand All @@ -95,7 +95,7 @@ func (c *Client) PostFeedback(ctx context.Context, feedback *models.Feedback, op

options.SetAuth(req)

resp, err := c.hcCli.Client.Do(ctx, req)
resp, err := cli.hcCli.Client.Do(ctx, req)
if err != nil {
return &sdkError.StatusError{
Err: fmt.Errorf("error sending request: %w", err),
Expand Down
6 changes: 3 additions & 3 deletions sdk/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ func getMockClient(host string, statusCode int, bodyStr string, doErr error) (*h
return healthcheck.NewClientWithClienter(sdk.Service, host, c), c
}

func getExampleFeedbackJson() []byte {
func getExampleFeedbackJSON() []byte {
f := getExampleFeedback()
feedbackJson, err := json.Marshal(f)
feedbackJSON, err := json.Marshal(f)
So(err, ShouldBeNil)
return feedbackJson
return feedbackJSON
}

func getExampleFeedback() *models.Feedback {
Expand Down

0 comments on commit f74a73d

Please sign in to comment.