Skip to content

Commit

Permalink
fix early return bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tenub committed Oct 25, 2024
1 parent d45824e commit f743a1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,7 @@ export class Schematic {
return new Promise((resolve, reject) => {
// Confirm that the context has changed; if it hasn't, we don't need to do anything
if (contextString(context) == contextString(this.context)) {
resolve();
return;
return resolve(this.setIsPending(false));
}

this.context = context;
Expand Down

0 comments on commit f743a1c

Please sign in to comment.