From cd6fd313a53ab734a7840023525971a89657a8fe Mon Sep 17 00:00:00 2001 From: Tanmay Ranjan Date: Mon, 5 Aug 2024 13:14:12 +0530 Subject: [PATCH] remove not to ! for checking NOT_IN_ARRAY condition --- src/main/kotlin/com/featurevisor/sdk/Conditions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/featurevisor/sdk/Conditions.kt b/src/main/kotlin/com/featurevisor/sdk/Conditions.kt index 0245c40..41c15dc 100644 --- a/src/main/kotlin/com/featurevisor/sdk/Conditions.kt +++ b/src/main/kotlin/com/featurevisor/sdk/Conditions.kt @@ -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 } }