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

fix division by zero when parsing step field #47

Merged
merged 2 commits into from
Apr 10, 2023

Conversation

andreydomas
Copy link
Contributor

Zero or non-integer step field causes panic instead of parsing error.

@codecov-commenter
Copy link

codecov-commenter commented Apr 1, 2023

Codecov Report

Merging #47 (8638691) into master (5dd722b) will increase coverage by 0.73%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master      #47      +/-   ##
==========================================
+ Coverage   85.39%   86.13%   +0.73%     
==========================================
  Files           7        7              
  Lines         678      678              
==========================================
+ Hits          579      584       +5     
+ Misses         70       67       -3     
+ Partials       29       27       -2     
Impacted Files Coverage Δ
quartz/util.go 88.88% <100.00%> (+2.46%) ⬆️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Owner

@reugn reugn left a comment

Choose a reason for hiding this comment

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

Thanks, @andreydomas. I think it would be better to validate that within the fillStep function.

@andreydomas
Copy link
Contributor Author

Ok, moved to fillStep

@reugn reugn merged commit 5affccf into reugn:master Apr 10, 2023
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