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

chore(transforms): add NaN check to all size transforms #413

Merged
merged 2 commits into from
Apr 17, 2020

Conversation

tonyjwalt
Copy link
Contributor

Issue #, 408

Description of changes:
I added NaN checks to all size transforms, and throw an error whenever the passed value cannot be parsed into a number.

I also added associated tests for each transform.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chazzmoney
Copy link
Collaborator

Thank you for this - a very useful commit.

Sorry for the edit, I did a dumb and merged a code cleanup on parseFloat that conflicted and then fixed the conflict here.

Once Travis checks are complete will merge.

@chazzmoney chazzmoney merged commit d353795 into amzn:master Apr 17, 2020
@tonyjwalt tonyjwalt deleted the feature/addNaNChecks branch May 5, 2020 05:11
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.

2 participants