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

MONGOID-4919 Use Mongo::Error::SessionsNotSupported for checking session support #4812

Merged
merged 2 commits into from Jul 13, 2020

Conversation

p-mongo
Copy link
Contributor

@p-mongo p-mongo commented Jul 10, 2020

No description provided.

@p-mongo p-mongo changed the title MONGOID-4919 4919 MONGOID-4919 Use Mongo::Error::SessionsNotSupported for checking session support Jul 10, 2020
@p-mongo
Copy link
Contributor Author

p-mongo commented Jul 10, 2020

@p-mongo p-mongo requested a review from egiurleo July 11, 2020 02:00
if
# Driver 2.13.0+
defined?(Mongo::Error::SessionsNotSupported) &&
Mongo::Error::SessionsNotSupported === ex or
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to use or here vs ||? All things being equal, I think I'd prefer consistent styles.

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 think I did it for emphasis but I can redo with punctuation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

@p-mongo p-mongo merged commit 706a5e1 into mongodb:master Jul 13, 2020
p-mongo added a commit that referenced this pull request Jul 13, 2020
…ion support (#4812)

* MONGOID-4919 Use Mongo::Error::SessionsNotSupported for checking session support

* use punctuation disjunction

Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
p-mongo added a commit that referenced this pull request Jul 13, 2020
…ion support (#4812)

* MONGOID-4919 Use Mongo::Error::SessionsNotSupported for checking session support

* use punctuation disjunction

Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants