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 no custom properties when set to "all" bug #146

Merged
merged 1 commit into from
Feb 10, 2024
Merged

Conversation

xNul
Copy link
Contributor

@xNul xNul commented Feb 10, 2024

The if statement branch is never taken in this scenario because the length of custom_properties will always be zero. Meaning, anyone using this function directly will never be able to use the default "all" value for custom_properties_keys.

It seems to be a small typo and the intention was to ensure the custom_properties_keys list has at least one element in it before indexing to avoid a potential runtime error.

I've made the small fix here, if you would like to merge it.

@cheahjs
Copy link
Owner

cheahjs commented Feb 10, 2024

Whoops, thanks for catching this.

@cheahjs cheahjs merged commit 99bad52 into cheahjs:main Feb 10, 2024
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