-
Notifications
You must be signed in to change notification settings - Fork 39
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
Replace .len() < 1
with .is_empty()
in generated code
#120
Comments
Since this was sitting in my notifications for forever, I just had a look. Seems like this is just a specific case of 1 for an otherwise generic check, and as such I don't think we should change the codegen. We can probably just add an |
Agreed, |
Right, I just meant not complicate it with extra branches. |
I think the is_empty would be better for the case with |
See: #148 |
No description provided.
The text was updated successfully, but these errors were encountered: