From 558a1ecf4b843bda7d9c256458a6702935e059ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Ate=C5=9F=20Uzun?= Date: Thu, 17 Aug 2023 18:12:58 +0300 Subject: [PATCH] fix: assertTruthy error message typo --- tools/@aws-cdk/spec2cdk/lib/cdk/union-ordering.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/@aws-cdk/spec2cdk/lib/cdk/union-ordering.ts b/tools/@aws-cdk/spec2cdk/lib/cdk/union-ordering.ts index 1690481619bd7..9b06b137c8f8d 100644 --- a/tools/@aws-cdk/spec2cdk/lib/cdk/union-ordering.ts +++ b/tools/@aws-cdk/spec2cdk/lib/cdk/union-ordering.ts @@ -114,7 +114,7 @@ function requiredPropertyNames(t: TypeDefinition): Set { function assertTruthy(x: T): NonNullable { if (x == null) { - throw new Error('Expected truhty value'); + throw new Error('Expected truthy value'); } return x; -} \ No newline at end of file +}