Skip to content

Commit

Permalink
Removed getInvalidOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushRedHat committed Jan 9, 2024
1 parent 9162bb7 commit 672e437
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,6 @@ utils.getGeneratorVersion = () => {
return packageJson.version;
};

/**
* Filters out the Generator invalid options given
*
* @param {Array}
* @returns {Array}
*/
utils.getInvalidOptions = (generatorOptions, options) => {
if (typeof options !== 'object') return [];
return Object.keys(options).filter(param => !generatorOptions.includes(param));
};

/**
* Determine whether the given function is asynchronous.
Expand Down

0 comments on commit 672e437

Please sign in to comment.