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

Fixed differing null/empty evaluation during non-array IsIn condition #25

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

Norhaven
Copy link
Collaborator

The logic of the ConditionEvaluationProvider.IsIn() call was incorrectly checking for only a null value when a non-array actual value was present, which made the behavior mark features as enabled when they should have been disabled. Changed this to do an actual IsNullOrWhitespace() verification on the non-array token instead to fix the issue.

This PR is to address issue #24.

Copy link
Contributor

@pascal89 pascal89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget the version increment + changelog ;-)

@Norhaven Norhaven merged commit 1bbc78b into main Feb 2, 2024
3 checks passed
@Norhaven Norhaven deleted the fixing-eval-isin-failure branch February 2, 2024 23: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