Skip to content

Fix ability to define falsy value #788

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix ability to define falsy value #788

wants to merge 1 commit into from

Conversation

kvpt
Copy link

@kvpt kvpt commented Apr 8, 2025

There is multiple places in the code where a truthy check is made against the metadata value to check if the metadata is defined.
It is problematic when the metadata value is a falsy value like number 0 or boolean false.
So I replaced those checks with explicit checks against undefined.
I don't see any case where it would not be the right thing to do.

@kvpt
Copy link
Author

kvpt commented Jun 5, 2025

Hi @abraham, I contact you again regarding this small contribution submitted two months ago and not reviewed yet.
When you have some time can you review it please, thank you.

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.

1 participant