From 9e3b153c2df8e82c96dc40749aaafe38f78f2947 Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Tue, 2 Jul 2024 16:46:59 -0500 Subject: [PATCH] chore: smol type improvement --- src/lib/createGHA/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/createGHA/index.ts b/src/lib/createGHA/index.ts index 1fcfe1218..f232957fb 100644 --- a/src/lib/createGHA/index.ts +++ b/src/lib/createGHA/index.ts @@ -62,9 +62,7 @@ function constructCmdString(command: keyof typeof commands, args: OptionDefiniti const optsString = args .sort(arg => (arg.defaultOption ? -1 : 0)) .map(arg => { - // @ts-expect-error by this point it's safe to assume that - // the argument names match the opts object. - const val = opts[arg.name]; + const val = opts[arg.name as keyof typeof opts]; // if default option, return the value if (arg.defaultOption) return val; // obfuscate the key in a GitHub secret