Skip to content

Commit

Permalink
remove not to ! for checking NOT_IN_ARRAY condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tan108 committed Aug 5, 2024
1 parent 041a505 commit cd6fd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/featurevisor/sdk/Conditions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ object Conditions {
attributeValue is AttributeValue.StringValue && conditionValue is ConditionValue.ArrayValue -> {
when (operator) {
IN_ARRAY -> attributeValue.value in conditionValue.values
NOT_IN_ARRAY -> (attributeValue.value in conditionValue.values).not()
NOT_IN_ARRAY -> (attributeValue.value !in conditionValue.values)
else -> false
}
}
Expand Down

0 comments on commit cd6fd31

Please sign in to comment.