Skip to content

Commit

Permalink
chore: smol type improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Jul 2, 2024
1 parent 8c4445b commit 9e3b153
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/createGHA/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e3b153

Please sign in to comment.