@@ -43,8 +43,8 @@ export function evaluateFeature(
4343 if ( thenable ( parsedSplit ) ) {
4444 return parsedSplit . then ( ( split ) => getEvaluation (
4545 log ,
46- split ,
4746 key ,
47+ split ,
4848 attributes ,
4949 storage ,
5050 ) ) . catch (
@@ -56,8 +56,8 @@ export function evaluateFeature(
5656
5757 return getEvaluation (
5858 log ,
59- parsedSplit ,
6059 key ,
60+ parsedSplit ,
6161 attributes ,
6262 storage ,
6363 ) ;
@@ -80,13 +80,13 @@ export function evaluateFeatures(
8080 }
8181
8282 return thenable ( parsedSplits ) ?
83- parsedSplits . then ( splits => getEvaluations ( log , splitNames , splits , key , attributes , storage ) )
83+ parsedSplits . then ( splits => getEvaluations ( log , key , splitNames , splits , attributes , storage ) )
8484 . catch ( ( ) => {
8585 // Exception on async `getSplits` storage. For example, when the storage is redis or
8686 // pluggable and there is a connection issue and we can't retrieve the split to be evaluated
8787 return treatmentsException ( splitNames ) ;
8888 } ) :
89- getEvaluations ( log , splitNames , parsedSplits , key , attributes , storage ) ;
89+ getEvaluations ( log , key , splitNames , parsedSplits , attributes , storage ) ;
9090}
9191
9292export function evaluateFeaturesByFlagSets (
@@ -136,8 +136,8 @@ export function evaluateFeaturesByFlagSets(
136136
137137function getEvaluation (
138138 log : ILogger ,
139- splitJSON : ISplit | null ,
140139 key : SplitIO . SplitKey ,
140+ splitJSON : ISplit | null ,
141141 attributes : SplitIO . Attributes | undefined ,
142142 storage : IStorageSync | IStorageAsync ,
143143) : MaybeThenable < IEvaluationResult > {
@@ -172,9 +172,9 @@ function getEvaluation(
172172
173173function getEvaluations (
174174 log : ILogger ,
175+ key : SplitIO . SplitKey ,
175176 splitNames : string [ ] ,
176177 splits : Record < string , ISplit | null > ,
177- key : SplitIO . SplitKey ,
178178 attributes : SplitIO . Attributes | undefined ,
179179 storage : IStorageSync | IStorageAsync ,
180180) : MaybeThenable < Record < string , IEvaluationResult > > {
@@ -183,8 +183,8 @@ function getEvaluations(
183183 splitNames . forEach ( splitName => {
184184 const evaluation = getEvaluation (
185185 log ,
186- splits [ splitName ] ,
187186 key ,
187+ splits [ splitName ] ,
188188 attributes ,
189189 storage
190190 ) ;
0 commit comments