Skip to content

Commit

Permalink
docs: omit explicit returns
Browse files Browse the repository at this point in the history
  • Loading branch information
g1stavo authored Feb 26, 2021
1 parent d1484a4 commit 8cde90c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func TestConsumer(t *testing.T) {
u := fmt.Sprintf("http://localhost:%d/foobar", pact.Server.Port)
req, err := http.NewRequest("GET", u, strings.NewReader(`{"name":"billy"}`))
if err != nil {
return err
return
}

// NOTE: by default, request bodies are expected to be sent with a Content-Type
Expand All @@ -185,10 +185,10 @@ func TestConsumer(t *testing.T) {
req.Header.Set("Authorization", "Bearer 1234")

if _, err = http.DefaultClient.Do(req); err != nil {
return err
return
}

return nil
return
}

// Set up our expected interactions.
Expand Down

0 comments on commit 8cde90c

Please sign in to comment.