Skip to content

Commit c7bb950

Browse files
committed
Documentation fixes
1 parent 4071a65 commit c7bb950

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clientex_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,7 @@ func TestClientUsage(t *testing.T) {
114114

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

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

0 commit comments

Comments
 (0)