Skip to content

Commit

Permalink
Made getVariation method public (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinha610 authored Jul 12, 2024
1 parent fe077de commit 455e13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/featurevisor/sdk/Instance+Variation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.featurevisor.types.Context
import com.featurevisor.types.FeatureKey
import com.featurevisor.types.VariationValue

internal fun FeaturevisorInstance.getVariation(featureKey: FeatureKey, context: Context): VariationValue? {
fun FeaturevisorInstance.getVariation(featureKey: FeatureKey, context: Context): VariationValue? {
val evaluation = evaluateVariation(featureKey, context)
return when {
evaluation.variationValue != null -> evaluation.variationValue
Expand Down

0 comments on commit 455e13e

Please sign in to comment.