Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #39 from spotify/bugfix-setctx
Browse files Browse the repository at this point in the history
Bug fix in setEvaluationContext
  • Loading branch information
vahidlazio authored Aug 2, 2023
2 parents f352203 + d0d4021 commit f8fa08f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ object OpenFeatureAPI {
}

fun setEvaluationContext(evaluationContext: EvaluationContext) {
val oldContext = context
context = evaluationContext
getProvider()?.onContextSet(context, evaluationContext)
getProvider()?.onContextSet(oldContext, evaluationContext)
}

fun getEvaluationContext(): EvaluationContext? {
Expand Down

0 comments on commit f8fa08f

Please sign in to comment.