Skip to content

Commit

Permalink
fix: assertTruthy error message typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0o001 committed Aug 17, 2023
1 parent 8c9f0e2 commit 558a1ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/@aws-cdk/spec2cdk/lib/cdk/union-ordering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function requiredPropertyNames(t: TypeDefinition): Set<string> {

function assertTruthy<T>(x: T): NonNullable<T> {
if (x == null) {
throw new Error('Expected truhty value');
throw new Error('Expected truthy value');
}
return x;
}
}

0 comments on commit 558a1ec

Please sign in to comment.