@@ -334,8 +334,6 @@ export class LiveMap<T extends Record<string, Value> = Record<string, Value>>
334334 case ObjectOperationAction . MAP_SET :
335335 if ( this . _client . Utils . isNil ( op . mapOp ) ) {
336336 this . _throwNoPayloadError ( op ) ;
337- // leave an explicit return here, so that TS knows that update object is always set after the switch statement.
338- return ;
339337 } else {
340338 update = this . _applyMapSet ( op . mapOp , opSerial , msg ) ;
341339 }
@@ -344,8 +342,6 @@ export class LiveMap<T extends Record<string, Value> = Record<string, Value>>
344342 case ObjectOperationAction . MAP_REMOVE :
345343 if ( this . _client . Utils . isNil ( op . mapOp ) ) {
346344 this . _throwNoPayloadError ( op ) ;
347- // leave an explicit return here, so that TS knows that update object is always set after the switch statement.
348- return ;
349345 } else {
350346 update = this . _applyMapRemove ( op . mapOp , opSerial , msg . serialTimestamp , msg ) ;
351347 }
@@ -683,7 +679,7 @@ export class LiveMap<T extends Record<string, Value> = Record<string, Value>>
683679 return aggregatedUpdate ;
684680 }
685681
686- private _throwNoPayloadError ( op : ObjectOperation < ObjectData > ) : void {
682+ private _throwNoPayloadError ( op : ObjectOperation < ObjectData > ) : never {
687683 throw new this . _client . ErrorInfo (
688684 `No payload found for ${ op . action } op for LiveMap objectId=${ this . getObjectId ( ) } ` ,
689685 92000 ,
0 commit comments