Skip to content

Commit

Permalink
Json type variable parsing issue fixes (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tan108 authored May 10, 2024
1 parent 1c2139d commit e004d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ fun FeaturevisorInstance.evaluateVariable(

// initial
if (!statuses.ready && initialFeatures?.get(featureKey)?.variables?.get(variableKey) != null) {
val variableValue = initialFeatures?.get(featureKey)?.variables?.get(variableKey)
val variableValue = initialFeatures[featureKey]?.variables?.get(variableKey)
evaluation = Evaluation(
featureKey = featureKey,
reason = INITIAL,
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/featurevisor/sdk/Instance+Variable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ inline fun <reified T : Any> FeaturevisorInstance.getVariableObject(
}
}

inline fun <reified T : Any> FeaturevisorInstance.getVariableJSON(
inline fun <reified T> FeaturevisorInstance.getVariableJSON(
featureKey: FeatureKey,
variableKey: VariableKey,
context: Context,
Expand Down

0 comments on commit e004d5e

Please sign in to comment.