Skip to content

Commit

Permalink
Update Instance+Activation.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinha610 authored Jul 30, 2024
1 parent 3733bf0 commit bd6e5b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/featurevisor/sdk/Instance+Activation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ fun FeaturevisorInstance.activate(featureKey: FeatureKey, context: Context = emp
val finalContext = interceptContext?.invoke(context) ?: context
val captureContext = mutableMapOf<String, AttributeValue>()
val attributesForCapturing = datafileReader.getAllAttributes()
.filter { it.value.capture == true }
.filter { it.capture == true }

attributesForCapturing.forEach { (_, attribute) ->
attributesForCapturing.forEach { attribute ->
finalContext[attribute.key]?.let {
captureContext[attribute.key] = it
}
Expand Down

0 comments on commit bd6e5b4

Please sign in to comment.