From 03878203041c4d694bc3ecaf1370b3d407591c53 Mon Sep 17 00:00:00 2001 From: James Ives Date: Fri, 4 Jun 2021 10:08:56 -0400 Subject: [PATCH] Formatting fixes --- src/ssh.ts | 5 ++--- src/util.ts | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ssh.ts b/src/ssh.ts index 846c124f..7df9e3a3 100644 --- a/src/ssh.ts +++ b/src/ssh.ts @@ -26,9 +26,8 @@ export async function configureSSH(action: ActionInterface): Promise { const agentOutput = execFileSync('ssh-agent').toString().split('\n') agentOutput.map(line => { - const exportableVariables = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec( - line - ) + const exportableVariables = + /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(line) if (exportableVariables && exportableVariables.length) { exportVariable(exportableVariables[1], exportableVariables[2]) diff --git a/src/util.ts b/src/util.ts index dd9a10d3..7f67b149 100644 --- a/src/util.ts +++ b/src/util.ts @@ -79,9 +79,9 @@ export const suppressSensitiveInformation = ( return value } - const orderedByLength = ([action.token, action.repositoryPath].filter( - Boolean - ) as string[]).sort((a, b) => b.length - a.length) + const orderedByLength = ( + [action.token, action.repositoryPath].filter(Boolean) as string[] + ).sort((a, b) => b.length - a.length) for (const find of orderedByLength) { value = replaceAll(value, find, '***')