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

Correct al instances of config.get() to use singleton-comparison #208

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

sercero
Copy link
Collaborator

@sercero sercero commented Mar 10, 2024

The issue is that config.get() can return any kind of value, not just True or False, so we need to check if the return value is True or False the truthiness comparison does not work.

@paroj
Copy link
Member

paroj commented Mar 10, 2024

I think we can safely assume True or False, as we either set the value internally or read it from BoolProperty

@sercero sercero closed this Mar 11, 2024
@sercero sercero force-pushed the singleton_comparison branch from 69dbf7d to c743590 Compare March 11, 2024 13:03
…stead of truthiness wich was failing in some instances
@sercero sercero reopened this Mar 11, 2024
@sercero sercero merged commit 3512e3d into OGRECave:master Mar 11, 2024
2 checks passed
@sercero sercero deleted the singleton_comparison branch March 11, 2024 13:13
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