Skip to content

Commit

Permalink
chore(spec2cdk): assertTruthy error message typo (#26792)
Browse files Browse the repository at this point in the history
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
0o001 committed Aug 17, 2023
1 parent 66b16f3 commit a68f7d7
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 a68f7d7

Please sign in to comment.