Formatting fixes

This commit is contained in:
James Ives 2021-06-04 10:08:56 -04:00
parent 5fa057fd94
commit 0387820304
2 changed files with 5 additions and 6 deletions

View File

@ -26,9 +26,8 @@ export async function configureSSH(action: ActionInterface): Promise<void> {
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])

View File

@ -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, '***')