Skip to content

Remove unused ServerOption error. #888

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

Merged

Conversation

matthewdale
Copy link
Collaborator

Type ServerOption is currently a func(*serverConfig) error. However, no ServerOption functions return an error. Remove the error returned by the ServerOption type (now func(*serverConfig)) and remove all of the now-unnecessary error handling logic.

Follow up to previous similar PR #859

Copy link
Contributor

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

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

Nice; thanks for the cleanup!

@matthewdale matthewdale force-pushed the experiment-remove-serveropts-err branch from 215b687 to 40ff6ec Compare March 29, 2022 16:45
@matthewdale matthewdale merged commit a26cf64 into mongodb:master Mar 30, 2022
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