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
add admin operators. #308
add admin operators. #308
Conversation
if err != nil { | ||
return errors.Trace(err) | ||
} | ||
defer r.Body.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seem that you can still use r.Body.Close
here directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't, io.Reader
has no Close
method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use io.ReadCloser instead
cf9defd
to
e9f16fa
Compare
e9f16fa
to
cef6214
Compare
LGTM |
LGTM |
No description provided.