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

Clean up infinite retries parsing. #30

Merged
merged 1 commit into from
Dec 18, 2019
Merged

Clean up infinite retries parsing. #30

merged 1 commit into from
Dec 18, 2019

Conversation

peter50216
Copy link

The original :infinite || tries.respond_to?(:infinite?) && tries.infinite? is always :infinite.

@nfedyashev nfedyashev merged commit c284ab9 into nfedyashev:master Dec 18, 2019
@nfedyashev
Copy link
Owner

Although I don't think there was a bug, your version definitely looks cleaner.
Thank you.

It will be released along with the next improvement/bug fixing.

@peter50216
Copy link
Author

Yes I don't think there was a bug too, since the retries + 1 >= tries covers native infinity cases. (The new tests in 16f60bb09560 actually pass without the change.)
Thanks for merging this 😄

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

2 participants