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

Remove try/catch block that can't be hit. #534

Merged
merged 1 commit into from Mar 20, 2013
Merged

Remove try/catch block that can't be hit. #534

merged 1 commit into from Mar 20, 2013

Conversation

stephenh
Copy link
Contributor

Minor change, but like the code from the StandaloneExecutorBackend.preStart that was fixed a few weeks ago, all of these method calls are async, and so will not cause connection/etc. exceptions.

Granted, this is not causing any bugs, but it can lure the programmer into thinking the calls are sync (it did me anyway) and so lead to seemingly-surprising behavior.

It seems simpler to just take it out, so it mirrors what StandaloneExecutorBackend.preStart looks like now.

mateiz added a commit that referenced this pull request Mar 20, 2013
Remove try/catch block that can't be hit.
@mateiz mateiz merged commit 1cbbe94 into mesos:master Mar 20, 2013
@mateiz
Copy link
Member

mateiz commented Mar 20, 2013

Good idea, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants