File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
packages/shared/akamai-edgeworker-sdk/src/featureStore Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ export class EdgeFeatureStore implements LDFeatureStore {
4747
4848 try {
4949 const storePayload = await this . _getStorePayload ( ) ;
50- if ( ! storePayload ) {
51- throw new Error ( `Error deserializing ${ this . _rootKey } ` ) ;
52- }
5350
5451 switch ( namespace ) {
5552 case 'features' :
@@ -73,9 +70,6 @@ export class EdgeFeatureStore implements LDFeatureStore {
7370 this . _logger . debug ( `Requesting all from ${ this . _rootKey } .${ kindKey } ` ) ;
7471 try {
7572 const storePayload = await this . _getStorePayload ( ) ;
76- if ( ! storePayload ) {
77- throw new Error ( `${ this . _rootKey } .${ kindKey } is not found in KV.` ) ;
78- }
7973
8074 switch ( namespace ) {
8175 case 'features' :
@@ -102,7 +96,9 @@ export class EdgeFeatureStore implements LDFeatureStore {
10296 *
10397 * @returns
10498 */
105- private async _getStorePayload ( ) : Promise < ReturnType < typeof deserializePoll > > {
99+ private async _getStorePayload ( ) : Promise <
100+ Exclude < ReturnType < typeof deserializePoll > , undefined >
101+ > {
106102 let payload = this . _cache . get ( ) ;
107103 if ( payload !== undefined ) {
108104 return payload ;
You can’t perform that action at this time.
0 commit comments