Skip to content

Commit

Permalink
fix decideForKeys bug
Browse files Browse the repository at this point in the history
Signed-off-by: pulak-opti <[email protected]>
  • Loading branch information
pulak-opti committed Oct 24, 2024
1 parent d855727 commit 1c6f14d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,9 @@ func (o *OptimizelyClient) decideForKeys(userContext OptimizelyUserContext, keys
userProfileBucketLen = len(userProfile.ExperimentBucketMap)
}

enabledFlagsOnly := o.getAllOptions(options).EnabledFlagsOnly
for _, key := range keys {
optimizelyDecision := o.decide(userContext, userProfile, key, options)
if !enabledFlagsOnly || optimizelyDecision.Enabled {
decisionMap[key] = optimizelyDecision
}
decisionMap[key] = optimizelyDecision
}

if !ignoreUserProfileSvc {
Expand Down

0 comments on commit 1c6f14d

Please sign in to comment.