Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronf committed Jun 11, 2024
1 parent 4071a65 commit c7bb950
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clientex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ func TestClientUsage(t *testing.T) {

// Send an HTTP POST, get response -- signing happens behind the scenes
body := `{"hello": "world"}`
res, err := client.Post(ts.URL, "application/json", bufio.NewReader(strings.NewReader(body)))
if err != nil {
_ = err // handle error
}
res, _ := client.Post(ts.URL, "application/json", bufio.NewReader(strings.NewReader(body)))

// Read the response
serverText, _ := io.ReadAll(res.Body)
Expand Down

0 comments on commit c7bb950

Please sign in to comment.