Skip to content

Commit

Permalink
Prepare composeWith for optional flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jan 22, 2020
1 parent 59d4557 commit c0521f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,10 @@ class Generator extends EventEmitter {
options,
arguments: options.arguments
});

if (!instantiatedGenerator) {
return this;
}
} else {
throw err;
}
Expand Down

0 comments on commit c0521f3

Please sign in to comment.