Skip to content
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

Merged
merged 4 commits into from Sep 7, 2016
Merged

add admin operators. #308

merged 4 commits into from Sep 7, 2016

Conversation

huachaohuang
Copy link
Contributor

No description provided.

if err != nil {
return errors.Trace(err)
}
defer r.Body.Close()
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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

@qiuyesuifeng
Copy link
Contributor

LGTM
@siddontang @overvenus PTAL

@overvenus
Copy link
Member

LGTM

@huachaohuang huachaohuang merged commit f18bb8f into master Sep 7, 2016
@huachaohuang huachaohuang deleted the huachaohuang/admin-operators branch September 7, 2016 02:18
c4pt0r pushed a commit that referenced this pull request Sep 13, 2016
* add admin operators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants