Skip to content

Commit

Permalink
Remove duplicate definition
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbrooke committed Sep 26, 2023
1 parent 9a07d73 commit 5bbb649
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/ui/atomic/create-atomic-component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5bbb649

Please sign in to comment.