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

Break after until #354

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Break after until #354

wants to merge 2 commits into from

Conversation

millarm
Copy link

@millarm millarm commented Jul 8, 2019

Daily repeating entries can hang the browser when querying between.

Fix to use the until parameter to prevent this happening


Thanks for contributing to rrule!

To submit a pull request, please verify that you have done the following:

  • Merged in or rebased on the latest master commit
  • [] Linked to an existing bug or issue describing the bug or feature you're
    addressing
  • Written one or more tests showing that your change works as advertised

@codecov-io
Copy link

codecov-io commented Jul 8, 2019

Codecov Report

Merging #354 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #354      +/-   ##
==========================================
+ Coverage   90.06%   90.07%   +0.01%     
==========================================
  Files          28       28              
  Lines        1962     1964       +2     
  Branches      583      585       +2     
==========================================
+ Hits         1767     1769       +2     
  Misses        195      195
Impacted Files Coverage Δ
src/iter/index.ts 98.14% <100%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0d83f3...4ff2d1f. Read the comment docs.

return emitResult(iterResult)
if (counterDate) {

if (counterDate.year > endYear) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please collapse these 2 if statements into if (counterDate && counterDate.year > endYear)

Copy link

Choose a reason for hiding this comment

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

I think you should take it despite that now no?

Copy link
Collaborator

@davidgoli davidgoli left a comment

Choose a reason for hiding this comment

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

One minor tweak, otherwise nice optimization!

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.

4 participants