Skip to content

Commit

Permalink
Merge branch 'master' into first
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Oct 21, 2024
2 parents 0e3a855 + cb375c4 commit c4c5da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/generator/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ utils.getGeneratorVersion = () => {
* @returns {Boolean} is function asynchronous
*/
utils.isAsyncFunction = (fn) => {
return fn && fn.constructor && fn.constructor.name === 'AsyncFunction';
return fn?.constructor?.name === 'AsyncFunction';
};

/**
Expand Down

0 comments on commit c4c5da5

Please sign in to comment.