-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check error in BaseClient.Perform #922
Conversation
The http.Resonse will be nil on errors, so return early. Fixes elastic#913
Thank you! |
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
Cheers, I just did that because goimports automatically changed it, and figured I might as well get it right. By the way, would you mind also talking a look at my other patches (#905 and #906)? I need to use a fork because of that now 😅 I think #905 should be pretty straight-forward? #906 might need a bit more of a careful look(?) It's been working well for me in the last month, and without it a lot of times you don't get an actual meaningful error if you do something wrong. |
The http.Resonse will be nil on errors, so return early.
Fixes #913