From 58712f4d46b2f510206e3197949a343e44e484a5 Mon Sep 17 00:00:00 2001 From: Felipe Suero Date: Tue, 2 May 2023 11:43:07 -0400 Subject: [PATCH] prettify --- languageserver/src/context-providers/secrets.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/languageserver/src/context-providers/secrets.ts b/languageserver/src/context-providers/secrets.ts index a5ea165..d2bc6e1 100644 --- a/languageserver/src/context-providers/secrets.ts +++ b/languageserver/src/context-providers/secrets.ts @@ -28,7 +28,7 @@ export async function getSecrets( } const eventsConfig = workflowContext?.template?.events; - const dynamicEnv = workflowContext?.template?.env + const dynamicEnv = workflowContext?.template?.env; if (eventsConfig?.workflow_call) { // Unpredictable secrets may be passed in via a workflow_call trigger @@ -50,7 +50,7 @@ export async function getSecrets( if (isString(x.value)) { environmentName = x.value.value; } else { - // this means we have a dynamic enviornment, in those situations we + // this means we have a dynamic enviornment, in those situations we // want to make sure we skip doing secret validation secretsContext.complete = false; } @@ -58,12 +58,11 @@ export async function getSecrets( } } } else { - // if the expression is something like environment: ${{ ... }} then we want to skip validation + // if the expression is something like environment: ${{ ... }} then we want to skip validation secretsContext.complete = false; } } - const secrets = await getRemoteSecrets(octokit, cache, repo, environmentName); // Build combined map of secrets