Skip to content

Commit

Permalink
chore: simplify local var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Nov 26, 2024
1 parent cb11d79 commit 5e4c5f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/graph/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,7 @@ export const processActionConfig = profileAsync(async function processActionConf
})
}

let availableForKind: string = (Object.keys(actionTypes[kind]) || {}).map((t) => `'${t}'`).join(", ")
if (availableForKind === "") {
availableForKind = "None"
}

const availableForKind: string = (Object.keys(actionTypes[kind]) || {}).map((t) => `'${t}'`).join(", ") || "None"
throw new ConfigurationError({
message: dedent`
Unrecognized action type '${type}' (kind '${kind}', defined at ${configPath}). Are you missing a provider configuration?
Expand Down

0 comments on commit 5e4c5f1

Please sign in to comment.