Skip to content

Commit 4e8aa63

Browse files
committed
precomputedFlag variable casing
1 parent ed8027d commit 4e8aa63

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/client/eppo-precomputed-client.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,16 @@ export default class EppoPrecomputedClient {
197197
): T {
198198
validateNotBlank(flagKey, 'Invalid argument: flagKey cannot be blank');
199199

200-
const preComputedFlag = this.getPrecomputedFlag(flagKey);
200+
const precomputedFlag = this.getPrecomputedFlag(flagKey);
201201

202-
if (preComputedFlag == null) {
202+
if (precomputedFlag == null) {
203203
logger.warn(`[Eppo SDK] No assigned variation. Flag not found: ${flagKey}`);
204204
return defaultValue;
205205
}
206206

207207
// 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}`;
210210
logger.error(errorMessage);
211211
return defaultValue;
212212
}
@@ -217,12 +217,12 @@ export default class EppoPrecomputedClient {
217217
subjectKey: this.subjectKey ?? '',
218218
subjectAttributes: this.subjectAttributes ?? {},
219219
variation: {
220-
key: preComputedFlag.variationKey,
221-
value: preComputedFlag.variationValue,
220+
key: precomputedFlag.variationKey,
221+
value: precomputedFlag.variationValue,
222222
},
223-
allocationKey: preComputedFlag.allocationKey,
224-
extraLogging: preComputedFlag.extraLogging,
225-
doLog: preComputedFlag.doLog,
223+
allocationKey: precomputedFlag.allocationKey,
224+
extraLogging: precomputedFlag.extraLogging,
225+
doLog: precomputedFlag.doLog,
226226
};
227227

228228
try {

0 commit comments

Comments
 (0)