Skip to content

Commit 2c613ff

Browse files
authored
fix: Fix an error handling situation that could cause double evaluation. (#249)
1 parent 9c1647f commit 2c613ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/shared/sdk-server/src/LDClientImpl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ export default class LDClientImpl implements LDClient {
488488
);
489489
cb(EvalResult.forError(ErrorKinds.ClientNotReady, undefined, defaultValue));
490490
});
491+
return;
491492
}
492493
this.variationInternal(flagKey, context, defaultValue, eventFactory, cb);
493494
}

0 commit comments

Comments
 (0)