Skip to content

Commit

Permalink
Rename b to envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed May 4, 2023
1 parent da2301e commit 3843b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ func getRequestFromEvent(event *Event, dsn *Dsn) (r *http.Request, err error) {
if body == nil {
return nil, errors.New("event could not be marshaled")
}
b, err := envelopeFromBody(event, dsn, time.Now(), body)
envelope, err := envelopeFromBody(event, dsn, time.Now(), body)
if err != nil {
return nil, err
}
return http.NewRequest(
http.MethodPost,
dsn.GetAPIURL().String(),
b,
envelope,
)
}

Expand Down

0 comments on commit 3843b0a

Please sign in to comment.