From 5e4c5f1fa6cdf0d59b4578bbceaa108602495574 Mon Sep 17 00:00:00 2001 From: Vladimir Vagaytsev <10628074+vvagaytsev@users.noreply.github.com> Date: Tue, 26 Nov 2024 08:37:45 +0100 Subject: [PATCH] chore: simplify local var declaration --- core/src/graph/actions.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/graph/actions.ts b/core/src/graph/actions.ts index 62bd702e95..09ade4dbb3 100644 --- a/core/src/graph/actions.ts +++ b/core/src/graph/actions.ts @@ -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?