Skip to content

Commit

Permalink
chore: Fix rule noUnreachableSuper
Browse files Browse the repository at this point in the history
  • Loading branch information
m1sk9 committed Jul 20, 2024
1 parent 338a43c commit 355e0b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/accounts/model/inactiveAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export type ActivateArgs = Omit<
>;

export class AlreadyActivatedError extends Error {
constructor(message?: string) {
if (message) {
super('This account was already activated.');
}
constructor(message = 'This account was already activated.') {
super(message);
}
}
Expand Down

0 comments on commit 355e0b4

Please sign in to comment.