File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -662,9 +662,9 @@ export class Activator implements ActivationHandler {
662
662
// These are caught elsewhere and fail the corresponding activation.
663
663
const doUpdateImpl = async ( ) => {
664
664
let input : UpdateInput ;
665
- const entry = this . updateHandlers . get ( name ) ;
665
+ const entry = this . updateHandlers . get ( name ) ! ;
666
666
try {
667
- if ( runValidator && entry ? .validator ) {
667
+ if ( runValidator && entry . validator ) {
668
668
const validate = composeInterceptors (
669
669
this . interceptors . inbound ,
670
670
'validateUpdate' ,
@@ -679,9 +679,6 @@ export class Activator implements ActivationHandler {
679
679
}
680
680
this . acceptUpdate ( protocolInstanceId ) ;
681
681
const execute = composeInterceptors ( this . interceptors . inbound , 'handleUpdate' , this . updateNextHandler . bind ( this ) ) ;
682
- if ( ! entry ) {
683
- return Promise . reject ( new IllegalStateError ( `No registered update handler for update: ${ name } ` ) ) ;
684
- }
685
682
const { unfinishedPolicy } = entry ;
686
683
this . inProgressUpdates . set ( updateId , { name, unfinishedPolicy, id : updateId } ) ;
687
684
const res = execute ( input )
You can’t perform that action at this time.
0 commit comments