Skip to content

Commit

Permalink
Fix IF condition - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Aug 28, 2024
1 parent 93642bb commit 1a0d318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/horizonclient/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func decodeResponse(resp *http.Response, object interface{}, horizonUrl string,
}
setCurrentServerTime(u.Hostname(), resp.Header["Date"], clock)

if resp.Request == nil || resp.Request.URL == nil || resp.Request.URL.Path == "/transactions_async" {
if resp.Request != nil && resp.Request.URL != nil && resp.Request.URL.Path == "/transactions_async" {
horizonError := &Error{
Response: resp,
}
Expand Down

0 comments on commit 1a0d318

Please sign in to comment.