Skip to content

Commit

Permalink
Moved String to after API call
Browse files Browse the repository at this point in the history
  • Loading branch information
allmightyspiff committed Sep 27, 2024
1 parent 92515ab commit 6f53aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ func New(args ...interface{}) *Session {
//
// For a description of parameters, see TransportHandler.DoRequest in this package
func (r *Session) DoRequest(service string, method string, args []interface{}, options *sl.Options, pResult interface{}) error {
r.LastCall = CallToString(service, method, args, options)
if r.TransportHandler == nil {
r.TransportHandler = getDefaultTransport(r.Endpoint)
}

err := r.TransportHandler.DoRequest(r, service, method, args, options, pResult)
r.LastCall = CallToString(service, method, args, options)
if err != nil {
return err
}
Expand Down

0 comments on commit 6f53aff

Please sign in to comment.