@@ -197,16 +197,16 @@ export default class EppoPrecomputedClient {
197
197
) : T {
198
198
validateNotBlank ( flagKey , 'Invalid argument: flagKey cannot be blank' ) ;
199
199
200
- const preComputedFlag = this . getPrecomputedFlag ( flagKey ) ;
200
+ const precomputedFlag = this . getPrecomputedFlag ( flagKey ) ;
201
201
202
- if ( preComputedFlag == null ) {
202
+ if ( precomputedFlag == null ) {
203
203
logger . warn ( `[Eppo SDK] No assigned variation. Flag not found: ${ flagKey } ` ) ;
204
204
return defaultValue ;
205
205
}
206
206
207
207
// Add type checking before proceeding
208
- if ( ! checkTypeMatch ( expectedType , preComputedFlag . variationType ) ) {
209
- const errorMessage = `[Eppo SDK] Type mismatch: expected ${ expectedType } but flag ${ flagKey } has type ${ preComputedFlag . variationType } ` ;
208
+ if ( ! checkTypeMatch ( expectedType , precomputedFlag . variationType ) ) {
209
+ const errorMessage = `[Eppo SDK] Type mismatch: expected ${ expectedType } but flag ${ flagKey } has type ${ precomputedFlag . variationType } ` ;
210
210
logger . error ( errorMessage ) ;
211
211
return defaultValue ;
212
212
}
@@ -217,12 +217,12 @@ export default class EppoPrecomputedClient {
217
217
subjectKey : this . subjectKey ?? '' ,
218
218
subjectAttributes : this . subjectAttributes ?? { } ,
219
219
variation : {
220
- key : preComputedFlag . variationKey ,
221
- value : preComputedFlag . variationValue ,
220
+ key : precomputedFlag . variationKey ,
221
+ value : precomputedFlag . variationValue ,
222
222
} ,
223
- allocationKey : preComputedFlag . allocationKey ,
224
- extraLogging : preComputedFlag . extraLogging ,
225
- doLog : preComputedFlag . doLog ,
223
+ allocationKey : precomputedFlag . allocationKey ,
224
+ extraLogging : precomputedFlag . extraLogging ,
225
+ doLog : precomputedFlag . doLog ,
226
226
} ;
227
227
228
228
try {
0 commit comments