diff --git a/packages/ui/atomic/create-atomic-component/index.js b/packages/ui/atomic/create-atomic-component/index.js index cc9c6eac0b..cbccd0cd35 100755 --- a/packages/ui/atomic/create-atomic-component/index.js +++ b/packages/ui/atomic/create-atomic-component/index.js @@ -42,21 +42,6 @@ class InvalidProjectDirectory extends Error { } } -class InvalidProjectDirectory extends Error { - name = 'Invalid project directory'; - constructor(message) { - super(message); - } - - toJSON() { - return { - name: this.name, - message: this.message, - stack: this.stack, - }; - } -} - const handleErrors = (error) => { if (process.channel) { process.send(error);