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 incorrect bool casts #208

Closed
wants to merge 1 commit into from
Closed

Fix incorrect bool casts #208

wants to merge 1 commit into from

Conversation

rien
Copy link

@rien rien commented Sep 12, 2019

The deprecation fix (deb1d3e) uses <variable> | bool to check whether a list was non-empty or a variable was defined. However, the bool filter just tries to cast its input to a boolean and string values become false.

This PR fixes the intended behaviour by checking if variables are defined and lists are non-empty.

@pkuczynski pkuczynski requested a review from a team July 21, 2020 09:42
@pkuczynski
Copy link
Member

@rien could you resolve conflicts in this PR please?

@pkuczynski pkuczynski added the bug label Jul 21, 2020
@rien
Copy link
Author

rien commented Jul 21, 2020

I think this was already fixed by #207 (hence the merge conflicts).

@rien rien closed this Jul 21, 2020
@pkuczynski
Copy link
Member

OK, cool, I wasn't sure which solution is correct. Thanks for replying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants