-
Notifications
You must be signed in to change notification settings - Fork 95
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
feat: allow user to convert datatype if valid #585
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fchikwekwe left a couple questions and a couple nits. Great work!
df64c34
to
437b3ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's getting close. Needs more testing.
75d743e
to
d116409
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left 1 nit, otherwise LGTM.
if !conditionMatchesValue(condition, value, exists) { | ||
ruleMatched = false | ||
break // if any condition fails, we can't possibly succeed, so exit inner loop early | ||
if condition.Matches != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we make it here we know condition.Matches != nil
so I believe we replace this if statement with an else if statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweet. updated.
Which problem is this PR solving?
Short description of the changes