Skip to content

Commit

Permalink
Update src/errors.ts
Browse files Browse the repository at this point in the history
make TOO_NEW a readonly property of class InvalidCryptoStoreError

Co-authored-by: Travis Ralston <[email protected]>
  • Loading branch information
ryushar and turt2live committed Mar 25, 2022
1 parent d2ee098 commit 4da5236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class InvalidStoreError extends Error {
}

export class InvalidCryptoStoreError extends Error {
public static TOO_NEW = "TOO_NEW";
public static readonly TOO_NEW = "TOO_NEW";

constructor(public reason: string) {
super(`Crypto store is invalid because ${reason}, ` +
Expand Down

0 comments on commit 4da5236

Please sign in to comment.