We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67199c8 commit 05bc0b9Copy full SHA for 05bc0b9
flag_engine/segments/evaluator.py
@@ -216,8 +216,12 @@ def context_matches_condition(
216
if condition["operator"] == constants.PERCENTAGE_SPLIT:
217
if context_value is not None:
218
object_ids = [segment_key, context_value]
219
- elif identity_key := (
220
- (identity_context := context.get("identity")) and identity_context["key"]
+ elif (
+ identity_key := (
221
+ (identity_context := context.get("identity"))
222
+ and identity_context["key"]
223
+ )
224
+ is not None
225
):
226
object_ids = [segment_key, identity_key]
227
else:
0 commit comments