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

[TOOLS-1576] Move defer statements to after err checks. #80

Merged
merged 1 commit into from
Dec 12, 2016

Conversation

robertclancy
Copy link
Contributor

@robertclancy robertclancy commented Dec 12, 2016

Arguments to defer are evaluated eagerly, hence should occur after any
error response is checked.

Fixes https://jira.mongodb.org/browse/TOOLS-1576

@robertclancy robertclancy changed the title Move defer statements to after err checks. [TOOLS-1576] Move defer statements to after err checks. Dec 12, 2016
@gabrielrussell
Copy link
Contributor

Can you recreate this rewriting the commit summary to "TOOLS-1576 move defer statements to after err checks"

Arguments to defer are evaluated eagerly, hence should occur after any
error response is checked.
Copy link
Contributor

@markbenvenuto markbenvenuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Pending the commit title change.

@robertclancy
Copy link
Contributor Author

I've changed the commit title. Does it look ok now?

@gabrielrussell gabrielrussell merged commit df7e8e2 into mongodb:master Dec 12, 2016
gabrielrussell pushed a commit that referenced this pull request Dec 12, 2016
Arguments to defer are evaluated eagerly, hence should occur after any
error response is checked.
gabrielrussell pushed a commit that referenced this pull request Dec 12, 2016
Arguments to defer are evaluated eagerly, hence should occur after any
error response is checked.
@gabrielrussell
Copy link
Contributor

Thanks for the good work @robertclancy

gabrielrussell pushed a commit that referenced this pull request Dec 14, 2016
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.

3 participants