Skip to content

Commit

Permalink
Update cli.js Promise executor functions should not be async
Browse files Browse the repository at this point in the history
  • Loading branch information
Chayan8837 authored Oct 4, 2024
1 parent 52c6796 commit 90ed161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/generator/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ xfs.mkdirp(program.output, async err => {
* @param {*} targetDir The path to the target directory.
*/
function generate(targetDir) {
return new Promise(async (resolve, reject) => {
return new Promise((resolve, reject) => {
try {
const generator = new Generator(template, targetDir || path.resolve(os.tmpdir(), 'asyncapi-generator'), {
templateParams: params,
Expand Down

0 comments on commit 90ed161

Please sign in to comment.