Skip to content

Commit 5af80fb

Browse files
ci: apply automated fixes
1 parent 9a853ad commit 5af80fb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/db/src/contracts.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@ const CONTRACTS_ENABLED =
3232
*/
3333
export class ContractViolationError extends Error {
3434
constructor(
35-
public readonly violationType: `precondition` | `postcondition` | `invariant`,
35+
public readonly violationType:
36+
| `precondition`
37+
| `postcondition`
38+
| `invariant`,
3639
message: string,
3740
) {
38-
super(`${violationType.charAt(0).toUpperCase() + violationType.slice(1)} violation: ${message}`)
41+
super(
42+
`${violationType.charAt(0).toUpperCase() + violationType.slice(1)} violation: ${message}`,
43+
)
3944
this.name = `ContractViolationError`
4045
}
4146
}

0 commit comments

Comments
 (0)